2024-07-13 16:08:31 +00:00
|
|
|
{% set my_server = item.0 %}
|
|
|
|
{% set my_vlans = item.1 | map(attribute='vlan.vid') | sort %}
|
|
|
|
{% set my_prefix = prefixes | selectattr("prefix", "==", my_server | ipaddr("network/prefix")) | first -%}
|
2023-12-18 10:22:14 +00:00
|
|
|
|
2024-07-13 16:08:31 +00:00
|
|
|
SERVERS="{{ my_server | ipaddr('address') }}"
|
|
|
|
{% if my_prefix.vrf.name == 'outside' %}
|
|
|
|
INTF_CMD="{{ my_vlans | map('regex_replace', '^', '-id bridge.') | join(' ') }} -iu {{ iface_uplink }} -iu peerlink.4 -U {{ my_prefix.vrf.name }}"
|
|
|
|
{% else %}
|
|
|
|
INTF_CMD="{{ my_vlans | map('regex_replace', '^', '-id bridge.') | join(' ') }} -U bridge.{{ my_prefix.vlan.vid }}"
|
|
|
|
{% endif %}
|
2024-11-09 18:59:11 +00:00
|
|
|
OPTIONS=""
|