NETCONF Configuration Guide
YANG API Reference
vlan-translation
21 min
asternos vlan translation module description asternos vlan translation module, including vlan stack and vlan mapping 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 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 /?/interfaces/interface/vlan translation path /?/interfaces/interface/vlan translation node type container description no description available access read write /?/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 path /?/interfaces/interface/vlan translation/stackings node type container description no description available access read write /?/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 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 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 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 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 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 path /?/interfaces/interface/vlan translation/mappings node type container description vlan mapping configuration access read write /?/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 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 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 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 rpcs delete all tagged vlan stacking path access /delete all tagged vlan stacking/input read write /delete all tagged vlan stacking/input/interface read write /delete all tagged vlan stacking/output read write /delete all tagged vlan stacking/output/data read write /delete all tagged vlan stacking/input path /delete all tagged vlan stacking/input node type container description no description available access read write /delete all tagged vlan stacking/input/interface path /delete all tagged vlan stacking/input/interface node type leaf description the name of the interface to delete all tagged vlan stackings if not specified, all tagged vlan stackings will be deleted from all interfaces access read write data type /delete all tagged vlan stacking/output path /delete all tagged vlan stacking/output node type container description no description available access read write /delete all tagged vlan stacking/output/data path /delete all tagged vlan stacking/output/data node type anydata description output message indicating the result of the operation access read write
