blob: bd461d904a35b6fee074694497f65f189d31e57f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
!
{% if vrf is vyos_defined %}
vrf {{ vrf }}
{% if protocol is vyos_defined %}
{% for prot, prot_config in protocol.items() %}
{{ afi }} protocol {{ protocol }} route-map {{ prot_config.route_map }}
{% endfor %}
{% endif %}
exit-vrf
!
{% else %}
{% if protocol is vyos_defined %}
{% for prot, prot_config in protocol.items() %}
{% if prot is vyos_defined('ospfv3') %}
{% set prot = 'ospf6' %}
{% endif %}
{{ afi }} protocol {{ prot }} route-map {{ prot_config.route_map }}
{% endfor %}
{% endif %}
{% endif %}
!
|