NETCONF Configuration Guide
YANG API Reference
vlan-translation
12 min
asternos vlan translation module, including vlan stack and vlan mapping yang tree diagram yang tree diagram 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 resources resource list 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 detailed nodes /?/interfaces/interface/vlan translation /?/interfaces/interface/vlan translation path /?/interfaces/interface/vlan translation node type container access read write /?/interfaces/interface/vlan translation/basic qinq enable /?/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 \<yang type boolean> constraints valid in \[true, false] /?/interfaces/interface/vlan translation/stackings /?/interfaces/interface/vlan translation/stackings path /?/interfaces/interface/vlan translation/stackings node type container access read write /?/interfaces/interface/vlan translation/stackings/stacking /?/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 /?/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 \<yang type uint16> constraints valid range 0 to 4094 /?/interfaces/interface/vlan translation/stackings/stacking/customer vlan /?/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 \<yang type vlan id> constraints multiple constraints valid range 1 to 4094 when condition /original vlan = 0 /?/interfaces/interface/vlan translation/stackings/stacking/service vlan /?/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 \<yang type vlan id> constraints valid range 1 to 4094 mandatory yes /?/interfaces/interface/vlan translation/stackings/stacking/remark tc /?/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 \<yang type uint8> constraints valid range 0 to 7 /?/interfaces/interface/vlan translation/stackings/stacking/upstream port /?/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 \<yang type ethernet port name> constraints when condition /original vlan = 0 mandatory yes /?/interfaces/interface/vlan translation/mappings /?/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 /?/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 /?/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 \<yang type vlan id> constraints valid range 1 to 4094 /?/interfaces/interface/vlan translation/mappings/mapping/stage /?/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 \<yang type enumeration> constraints enumeration with options ingress egress both /?/interfaces/interface/vlan translation/mappings/mapping/mapping vlan /?/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 \<yang type vlan id> constraints valid range 1 to 4094
