29 lines
669 B
Plaintext
29 lines
669 B
Plaintext
|
#
|
||
|
# This file is managed by Ansible, do not edit manually.
|
||
|
#
|
||
|
|
||
|
source-directory /etc/network/interfaces.d
|
||
|
|
||
|
{% for vlan_id, vlan_name in vlans.items() %}
|
||
|
auto vmbr{{ vlan_id }}
|
||
|
iface vmbr{{ vlan_id }} inet manual
|
||
|
bridge-ports bond1.{{ vlan_id }} bond10.{{ vlan_id }}
|
||
|
bridge_fd 15
|
||
|
bridge_hello 2
|
||
|
bridge_maxage 20
|
||
|
bridge_stp on
|
||
|
{% if vlan_id == 206 %}
|
||
|
address {{ ipv4_address }}/{{ ipv4_prefix_len }}
|
||
|
gateway {{ ipv4_gateway }}
|
||
|
{% endif %}
|
||
|
#{{ vlan_name }}
|
||
|
|
||
|
iface vmbr{{ vlan_id }} inet6 static
|
||
|
accept_ra 0
|
||
|
{% if vlan_id == 206 %}
|
||
|
address {{ ipv6_address }}/{{ ipv6_prefix_len }}
|
||
|
gateway {{ ipv6_gateway }}
|
||
|
{% endif %}
|
||
|
|
||
|
{% endfor %}
|