fabric: support native VLAN for tagged ports
This commit is contained in:
parent
55da0e2f78
commit
3ff4ed5a77
1 changed files with 3 additions and 0 deletions
|
|
@ -44,6 +44,9 @@ iface {{ iface.name }}
|
||||||
bridge-access {{ iface.untagged_vlan.vid }}
|
bridge-access {{ iface.untagged_vlan.vid }}
|
||||||
{% elif iface.mode.value == 'tagged' and iface.tagged_vlans %}
|
{% elif iface.mode.value == 'tagged' and iface.tagged_vlans %}
|
||||||
bridge-vids {{ iface.tagged_vlans | map(attribute='vid') | sort | join(' ') }}
|
bridge-vids {{ iface.tagged_vlans | map(attribute='vid') | sort | join(' ') }}
|
||||||
|
{% if iface.untagged_vlan %}
|
||||||
|
bridge-pvid {{ iface.untagged_vlan.vid }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue