Interface VlanConfig
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator")
public interface VlanConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
VLAN configuration container.
This class represents the following YANG schema fragment defined in module openconfig-vlan
grouping vlan-config {
leaf vlan-id {
type oc-vlan-types:vlan-id;
}
leaf name {
type string;
}
leaf status {
type enumeration {
enum ACTIVE {
}
enum SUSPENDED {
}
}
default ACTIVE;
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThis class represents the following YANG schema fragment defined in module openconfig-vlan -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Return name, ornullif it is not present.Return status, ornullif it is not present.Return vlanId, ornullif it is not present.Class<? extends VlanConfig>default @NonNull StringReturn name, guaranteed to be non-null.default @NonNull VlanConfig.StatusReturn status, guaranteed to be non-null.default @NonNull VlanIdReturn vlanId, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends VlanConfig> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getVlanId
VlanId getVlanId()Return vlanId, ornullif it is not present.Interface VLAN id.- Returns:
VlanIdvlanId, ornullif it is not present.
-
requireVlanId
Return vlanId, guaranteed to be non-null.Interface VLAN id.- Returns:
VlanIdvlanId, guaranteed to be non-null.- Throws:
NoSuchElementException- if vlanId is not present
-
getName
String getName()Return name, ornullif it is not present.Interface VLAN name.- Returns:
Stringname, ornullif it is not present.
-
requireName
Return name, guaranteed to be non-null.Interface VLAN name.- Returns:
Stringname, guaranteed to be non-null.- Throws:
NoSuchElementException- if name is not present
-
getStatus
VlanConfig.Status getStatus()Return status, ornullif it is not present.Admin state of the VLAN- Returns:
Statusstatus, ornullif it is not present.
-
requireStatus
Return status, guaranteed to be non-null.Admin state of the VLAN- Returns:
Statusstatus, guaranteed to be non-null.- Throws:
NoSuchElementException- if status is not present
-