ingress-vlan-translation
interface/ethernet/switch/ingress-vlan-translation
Syscap: musicswitch
Type: Directory
The Ingress VLAN Translation table allows for up to 15 entries for each port. One or multiple fields can be selected from the packet header for lookup in the Ingress VLAN Translation table. The S-VLAN or C-VLAN or both configured in the first matched entry are assigned to the packet.
| Flag | Name | Description |
|---|---|---|
| X | disabled | |
| I | invalid | |
| D | dynamic |
| Argument | Type | Description |
|---|---|---|
| protocol | alt { protocol-name: enum (length | llc-bpdu) { length:1, llc-bpdu:0x4242 } , protocol-number: num [ .. 65535] } | Matching Ethernet protocol. (only for Ingress VLAN Translation) |
| sa-learning | bool | Enables or disables source MAC learning after VLAN translation. (only for Ingress VLAN Translation) |
| ports ( mandatory ) | multi { array-id } | Matching switch ports for VLAN translation rule. |
| service-vlan-format | enum (untagged-or-tagged | priority-tagged-or-tagged | tagged | any) { untagged-or-tagged:0, priority-tagged-or-tagged:1, tagged:2, any:3 } | Type of frames with service tag for which VLAN translation rule is valid. |
| service-vid | num | Matching VLAN ID of the service tag. |
| service-pcp | num | Matching PCP of the service tag. |
| service-dei | num | Matching DEI of the service tag. |
| customer-vlan-format | enum (untagged-or-tagged | priority-tagged-or-tagged | tagged | any) { untagged-or-tagged:0, priority-tagged-or-tagged:1, tagged:2, any:3 } | Type of frames with customer tag for which VLAN translation rule is valid. |
| customer-vid | num | Matching the VLAN ID of the customer tag. |
| customer-pcp | num | Matching PCP of the customer tag. |
| customer-dei | num | Matching DEI of the customer tag. |
| new-service-vid | alt { special-vid: enum (customer-vid) { customer-vid:4096 } , vid: num [ .. 4095] } | The new service VLAN ID replaces the matching service VLAN ID. |
| new-customer-vid | alt { special-vid: enum (service-vid) { service-vid:4096 } , vid: num [ .. 4095] } | The new customer VLAN ID replaces the matching customer VLAN ID. If set to 4095 and ingress VLAN translation is used, then traffic is dropped. |
| pcp-propagation | bool | Enables or disables PCP propagation.
|
| swap-vids | enum (no | assign-cvid-to-svid) { no:0, assign-cvid-to-svid:0 } |
Below is a table of traffic that triggers a rule that has a certain VLAN format set; note that traffic that is tagged with VLAN ID 0 is a special case that is also taken into account.
| Property | Description |
|---|---|
| any | Accepts:
|
| priority-tagged-or-tagged | Accepts:
|
| tagged | Accepts:
|
| untagged-or-tagged | Accepts:
|
If VLAN-format is set to any, then customer-vid``/``service-vid set to 0 will trigger the switch rule with VLAN 0 traffic. In this case, the switch rule will be looking for untagged traffic or traffic with a VLAN 0 tag, and only untagged-or-tagged will filter out VLAN 0 traffic.