diff --git a/roles/fabric/templates/switch.intf.j2 b/roles/fabric/templates/switch.intf.j2 index 29185b1..9a20fb3 100644 --- a/roles/fabric/templates/switch.intf.j2 +++ b/roles/fabric/templates/switch.intf.j2 @@ -13,6 +13,9 @@ iface {{ iface.name }} {#- Bond/MLAG stuff. #} {% set members = interfaces | selectattr('lag') | selectattr('lag.name', '==', iface.name) %} bond-slaves {{ members | map(attribute='name') | join(' ') }} +{% if iface.custom_fields.bond_mode %} + bond-mode {{ iface.custom_fields.bond_mode }} +{% endif %} {# If the peer shares a bond with the same name, generate a clag-id for it unless the bonded link is to peer itself. #} {% if peer is defined %} {% set peer_members = hostvars[peer].interfaces | selectattr('lag') | selectattr('lag.name', '==', iface.name) %}