Skip to content

Commit 6625bb2

Browse files
authored
Cumulus: Change STP parameters on bridge and VXLAN interface (#2259)
1 parent c9dd578 commit 6625bb2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

netsim/ansible/templates/vlan/cumulus.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@ CONFIG
2222
cat >/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+
2526
auto {{ ifdata.ifname }}
2627
{% endif %}
28+
2729
iface {{ 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 %}

netsim/ansible/templates/vxlan/cumulus.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
#
3638
iface 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 %}

0 commit comments

Comments
 (0)