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