Skip to content

Commit

Permalink
Set device down before changing bond master
Browse files Browse the repository at this point in the history
  • Loading branch information
jbemmel committed Dec 15, 2024
1 parent 42717da commit ba639a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netsim/ansible/templates/lag/linux.j2
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ set -e # Exit immediately when any command fails
{% if node_provider != 'clab' %}
ethtool -s {{ l.ifname }} autoneg off speed 1000 duplex full
{% endif %}
ip link set dev {{ l.ifname }} down
ip link set dev {{ l.ifname }} master {%
for i in interfaces if i.type=='lag' and i.linkindex==l.lag._parentindex %}{{ i.ifname }}
{% endfor %}
Expand Down

0 comments on commit ba639a6

Please sign in to comment.