Interface VlanLogicalIngressMappingConfig
- 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 VlanLogicalIngressMappingConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration for ingress VLAN stack behaviors for packets that arrive on this
subinterface.
This class represents the following YANG schema fragment defined in module openconfig-vlan
grouping vlan-logical-ingress-mapping-config {
leaf vlan-stack-action {
type oc-vlan-types:vlan-stack-action;
}
leaf vlan-id {
type oc-vlan-types:vlan-id;
}
leaf tpid {
type identityref {
base TPID_TYPES;
}
}
}
-
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 TypeMethodDescriptiongetTpid()Return tpid, ornullif it is not present.Return vlanId, ornullif it is not present.Return vlanStackAction, ornullif it is not present.Class<? extends VlanLogicalIngressMappingConfig>default @NonNull TPIDTYPESReturn tpid, guaranteed to be non-null.default @NonNull VlanIdReturn vlanId, guaranteed to be non-null.default @NonNull VlanStackActionReturn vlanStackAction, 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 VlanLogicalIngressMappingConfig> 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
-
getVlanStackAction
VlanStackAction getVlanStackAction()Return vlanStackAction, ornullif it is not present.The action to take on the VLAN stack of a packet. This is optionally used in conjunction with adjacent leaves to override the values of the action.- Returns:
VlanStackActionvlanStackAction, ornullif it is not present.
-
requireVlanStackAction
Return vlanStackAction, guaranteed to be non-null.The action to take on the VLAN stack of a packet. This is optionally used in conjunction with adjacent leaves to override the values of the action.- Returns:
VlanStackActionvlanStackAction, guaranteed to be non-null.- Throws:
NoSuchElementException- if vlanStackAction is not present
-
getVlanId
VlanId getVlanId()Return vlanId, ornullif it is not present.Optionally specifies a fixed VLAN identifier that is used by the action configured in 'vlan-stack-action'. For example, if the action is 'PUSH' then this VLAN identifier is added to the the stack. This value must be non-zero if the 'vlan-stack-action' is one of 'PUSH' or 'SWAP'.- Returns:
VlanIdvlanId, ornullif it is not present.
-
requireVlanId
Return vlanId, guaranteed to be non-null.Optionally specifies a fixed VLAN identifier that is used by the action configured in 'vlan-stack-action'. For example, if the action is 'PUSH' then this VLAN identifier is added to the the stack. This value must be non-zero if the 'vlan-stack-action' is one of 'PUSH' or 'SWAP'.- Returns:
VlanIdvlanId, guaranteed to be non-null.- Throws:
NoSuchElementException- if vlanId is not present
-
getTpid
TPIDTYPES getTpid()Return tpid, ornullif it is not present.Optionally override the tag protocol identifier field (TPID) that is used by the action configured by 'vlan-stack-action' when modifying the VLAN stack.- Returns:
TPIDTYPEStpid, ornullif it is not present.
-
requireTpid
Return tpid, guaranteed to be non-null.Optionally override the tag protocol identifier field (TPID) that is used by the action configured by 'vlan-stack-action' when modifying the VLAN stack.- Returns:
TPIDTYPEStpid, guaranteed to be non-null.- Throws:
NoSuchElementException- if tpid is not present
-