vlan-translation
AsterNOS vlan translation module, including VLAN Stack and VLAN mapping.
module: asternos-vlan-translation
augment /if:interfaces/if:interface: +--rw vlan-translation +--rw basic-qinq-enable? boolean +--rw stackings | +--rw stacking* [original-vlan] | +--rw original-vlan uint16 | +--rw customer-vlan? cmn:vlan-id | +--rw service-vlan cmn:vlan-id | +--rw remark-tc? uint8 | +--rw upstream-port cmn:ethernet-port-name +--rw mappings +--rw mapping* [original-vlan stage] +--rw original-vlan cmn:vlan-id +--rw stage enumeration +--rw mapping-vlan? cmn:vlan-id
rpcs: +---x delete-all-tagged-vlan-stacking +---w input | +---w interface? cmn:ethernet-port-name +--ro output +--ro data? <anydata>Resources
Section titled “Resources”Resource List
Section titled “Resource List”| Path | Access |
|---|---|
| /?/interfaces/interface/vlan-translation | Read-Write |
| /?/interfaces/interface/vlan-translation/basic-qinq-enable | Read-Write |
| /?/interfaces/interface/vlan-translation/stackings | Read-Write |
| /?/interfaces/interface/vlan-translation/stackings/stacking | Read-Write |
| /?/interfaces/interface/vlan-translation/stackings/stacking/original-vlan | Read-Write |
| /?/interfaces/interface/vlan-translation/stackings/stacking/customer-vlan | Read-Write |
| /?/interfaces/interface/vlan-translation/stackings/stacking/service-vlan | Read-Write |
| /?/interfaces/interface/vlan-translation/stackings/stacking/remark-tc | Read-Write |
| /?/interfaces/interface/vlan-translation/stackings/stacking/upstream-port | Read-Write |
| /?/interfaces/interface/vlan-translation/mappings | Read-Write |
| /?/interfaces/interface/vlan-translation/mappings/mapping | Read-Write |
| /?/interfaces/interface/vlan-translation/mappings/mapping/original-vlan | Read-Write |
| /?/interfaces/interface/vlan-translation/mappings/mapping/stage | Read-Write |
| /?/interfaces/interface/vlan-translation/mappings/mapping/mapping-vlan | Read-Write |
Detailed Nodes
Section titled “Detailed Nodes”/?/interfaces/interface/vlan-translation
Section titled “/?/interfaces/interface/vlan-translation”Path
/?/interfaces/interface/vlan-translation
Node Type
container
Access
Read-Write
/?/interfaces/interface/vlan-translation/basic-qinq-enable
Section titled “/?/interfaces/interface/vlan-translation/basic-qinq-enable”Path
/?/interfaces/interface/vlan-translation/basic-qinq-enable
Node Type
leaf
Description
When true, all packet coming in from this port will be added with a PVID VLAN tag whether it is tagged or not.
Access
Read-Write
Data Type
Constraints
Valid in [true, false]
/?/interfaces/interface/vlan-translation/stackings
Section titled “/?/interfaces/interface/vlan-translation/stackings”Path
/?/interfaces/interface/vlan-translation/stackings
Node Type
container
Access
Read-Write
/?/interfaces/interface/vlan-translation/stackings/stacking
Section titled “/?/interfaces/interface/vlan-translation/stackings/stacking”Path
/?/interfaces/interface/vlan-translation/stackings/stacking
Node Type
list
Description
VLAN stack configuration
Access
Read-Write
/?/interfaces/interface/vlan-translation/stackings/stacking/original-vlan
Section titled “/?/interfaces/interface/vlan-translation/stackings/stacking/original-vlan”Path
/?/interfaces/interface/vlan-translation/stackings/stacking/original-vlan
Node Type
leaf
Description
The original VLAN ID of the packet.
When the ‘original-vlan’ is 0, it means that all untagged packets will be tagged with both service VLAN and customer VLAN.
When the ‘original-vlan’ is not 0, it means the packets only carrying the specified VLAN ID will be tagged with service VLAN.
Access
Read-Write
Data Type
Constraints
Valid range: 0 to 4094
/?/interfaces/interface/vlan-translation/stackings/stacking/customer-vlan
Section titled “/?/interfaces/interface/vlan-translation/stackings/stacking/customer-vlan”Path
/?/interfaces/interface/vlan-translation/stackings/stacking/customer-vlan
Node Type
leaf
Description
The customer VLAN to be tagged for those untagged packets.
Access
Read-Write
Data Type
Constraints
Multiple constraints:
- Valid range: 1 to 4094
- When condition: ../original-vlan = 0
/?/interfaces/interface/vlan-translation/stackings/stacking/service-vlan
Section titled “/?/interfaces/interface/vlan-translation/stackings/stacking/service-vlan”Path
/?/interfaces/interface/vlan-translation/stackings/stacking/service-vlan
Node Type
leaf
Description
The service VLAN to be tagged.
Access
Read-Write
Data Type
Constraints
Valid range: 1 to 4094
Mandatory
Yes
/?/interfaces/interface/vlan-translation/stackings/stacking/remark-tc
Section titled “/?/interfaces/interface/vlan-translation/stackings/stacking/remark-tc”Path
/?/interfaces/interface/vlan-translation/stackings/stacking/remark-tc
Node Type
leaf
Description
The remarking value for the traffic class of the packet.
Access
Read-Write
Data Type
Constraints
Valid range: 0 to 7
/?/interfaces/interface/vlan-translation/stackings/stacking/upstream-port
Section titled “/?/interfaces/interface/vlan-translation/stackings/stacking/upstream-port”Path
/?/interfaces/interface/vlan-translation/stackings/stacking/upstream-port
Node Type
leaf
Description
The upstream port of NNI.
Only when the ‘original-vlan’ is 0, this leaf is mandatory,
Otherwise, it can’t be set.
Access
Read-Write
Data Type
Constraints
When condition: ../original-vlan = 0
Mandatory
Yes
/?/interfaces/interface/vlan-translation/mappings
Section titled “/?/interfaces/interface/vlan-translation/mappings”Path
/?/interfaces/interface/vlan-translation/mappings
Node Type
container
Description
VLAN mapping configuration.
Access
Read-Write
/?/interfaces/interface/vlan-translation/mappings/mapping
Section titled “/?/interfaces/interface/vlan-translation/mappings/mapping”Path
/?/interfaces/interface/vlan-translation/mappings/mapping
Node Type
list
Description
VLAN mapping configuration.
Access
Read-Write
/?/interfaces/interface/vlan-translation/mappings/mapping/original-vlan
Section titled “/?/interfaces/interface/vlan-translation/mappings/mapping/original-vlan”Path
/?/interfaces/interface/vlan-translation/mappings/mapping/original-vlan
Node Type
leaf
Description
The original VLAN ID of the packet.
Access
Read-Write
Data Type
Constraints
Valid range: 1 to 4094
/?/interfaces/interface/vlan-translation/mappings/mapping/stage
Section titled “/?/interfaces/interface/vlan-translation/mappings/mapping/stage”Path
/?/interfaces/interface/vlan-translation/mappings/mapping/stage
Node Type
leaf
Description
The stage of the mapping.
Access
Read-Write
Data Type
Constraints
Enumeration with options:
- ingress
- egress
- both
/?/interfaces/interface/vlan-translation/mappings/mapping/mapping-vlan
Section titled “/?/interfaces/interface/vlan-translation/mappings/mapping/mapping-vlan”Path
/?/interfaces/interface/vlan-translation/mappings/mapping/mapping-vlan
Node Type
leaf
Description
The mapping VLAN ID, ‘original-vlan’ will be mapped to this VLAN ID.
Access
Read-Write
Data Type
Constraints
Valid range: 1 to 4094