Skip to content

Commit

Permalink
Use single brackets that work with 'sh' shell too
Browse files Browse the repository at this point in the history
  • Loading branch information
jbemmel committed Dec 10, 2024
1 parent 2ad7e98 commit 2ac13a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netsim/ansible/templates/lag/linux.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
#
# Make sure 'bonding' module is loaded
#
if [[ ! -e /sys/module/bonding ]]; then
if [ ! -e /sys/module/bonding ]; then
modprobe bonding miimon=100 mode=802.3ad lacp_rate=fast
fi
{% endif %}
if [[ ! -e /sys/class/net/{{l.ifname}} ]]; then
if [ ! -e /sys/class/net/{{l.ifname}} ]; then
ip link add dev {{l.ifname}} type bond mode {{_m}}
fi
{% endif %}
Expand Down

0 comments on commit 2ac13a3

Please sign in to comment.