File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,14 @@ CONFIG
2222cat > /etc/network/interfaces.d/51-bridge-interfaces.intf << CONFIG
2323{% for ifdata in interfaces if ifdata.vlan is defined %}
2424{% if ifdata.type == "svi" %}
25+
2526auto {{ ifdata.ifname }}
2627{% endif %}
28+
2729iface {{ ifdata.ifname }}
30+ {% if ifdata.mtu is defined %}
31+ mtu {{ ifdata.mtu }}
32+ {% endif %}
2833{% if ifdata.vlan.trunk_id is defined %}
2934 bridge-vids {{ ifdata.vlan.trunk_id|sort|join(",") }}
3035{% if ifdata.vlan.native is defined %}
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ iface vni-{{ vlan.vni }}
1414{% else %}
1515 vxlan-learning yes
1616{% endif %}
17+ mstpctl-bpduguard yes
18+ mstpctl-portbpdufilter yes
1719{% endmacro -%}
1820#
1921# Create VXLAN interfaces with static flood lists
@@ -34,7 +36,6 @@ iface lo inet loopback
3436{% endfor %}
3537#
3638iface bridge
37- bridge-stp no
3839{% for vname in vxlan.vlans if vlans[vname].vni is defined %}
3940 bridge-ports vni-{{ vlans[vname].vni }}
4041{% endfor %}
You can’t perform that action at this time.
0 commit comments