27 lines
606 B
Django/Jinja
27 lines
606 B
Django/Jinja
#
|
|
# 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 vlan{{ vlan_id }}
|
|
bridge-stp off
|
|
bridge-fd 0
|
|
{% 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 %}
|