Interface VlanLogicalEgressMappingConfig
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator") public interface VlanLogicalEgressMappingConfig extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration for egress VLAN stack behaviors for packets that are destined for output via this subinterface.This class represents the following YANG schema fragment defined in module openconfig-vlan
grouping vlan-logical-egress-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
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAMEYANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Class<? extends TPIDTYPES>getTpid()Return tpid, ornullif it is not present.VlanIdgetVlanId()Return vlanId, ornullif it is not present.VlanStackActiongetVlanStackAction()Return vlanStackAction, ornullif it is not present.Class<? extends VlanLogicalEgressMappingConfig>implementedInterface()default @NonNull Class<? extends TPIDTYPES>requireTpid()Return tpid, guaranteed to be non-null.default @NonNull VlanIdrequireVlanId()Return vlanId, guaranteed to be non-null.default @NonNull VlanStackActionrequireVlanStackAction()Return vlanStackAction, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends VlanLogicalEgressMappingConfig> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.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
default @NonNull VlanStackAction 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 'POP' then a VLAN identifier is removed from the stack but the value of this leaf is used instead. 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
default @NonNull VlanId 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 'POP' then a VLAN identifier is removed from the stack but the value of this leaf is used instead. 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
Class<? extends 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:
Class<? extends TPIDTYPES>tpid, ornullif it is not present.
-
requireTpid
default @NonNull Class<? extends TPIDTYPES> 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:
Class<? extends TPIDTYPES>tpid, guaranteed to be non-null.- Throws:
NoSuchElementException- if tpid is not present
-
-