network/roles/exit/templates/networks.intf.j2

12 lines
455 B
Plaintext
Raw Normal View History

{# VRF outside is special, all others are inside but also firewalled from each other. #}
{% set inside_vrfs = interfaces | selectattr('parent') | selectattr('parent.name', '==', 'bridge')
| selectattr('vrf') | map(attribute='vrf') | rejectattr('name', '==', 'outside') -%}
2023-12-18 10:22:14 +00:00
# A separate VRF for each inside network so we can firewall between them.
{% for vrf in inside_vrfs %}
auto {{ vrf.name }}
iface {{ vrf.name }}
2023-12-18 10:22:14 +00:00
vrf-table auto
{% endfor %}