diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-06 20:00:37 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-06 20:00:37 +0200 |
commit | 628db87bda8b124ffb23426daf2670de692a3f08 (patch) | |
tree | a7a7165795982580ba1e39ecea7cc0f33c584f60 /data/templates | |
parent | ae5e67d3bc2ee26fe6ecaac0f0e6329d24469c4c (diff) | |
download | vyos-1x-628db87bda8b124ffb23426daf2670de692a3f08.tar.gz vyos-1x-628db87bda8b124ffb23426daf2670de692a3f08.zip |
vrf: ospf: T3523: add route-map support for kernel routes
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/frr/ospf.frr.tmpl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/data/templates/frr/ospf.frr.tmpl b/data/templates/frr/ospf.frr.tmpl index a47c64c89..6283ad4e5 100644 --- a/data/templates/frr/ospf.frr.tmpl +++ b/data/templates/frr/ospf.frr.tmpl @@ -50,6 +50,15 @@ interface {{ iface }} {{ 'vrf ' + vrf if vrf is defined and vrf is not none }} {% endfor %} {% endif %} ! +{% if vrf is defined and vrf is not none and route_map is defined and route_map is not none %} +vrf {{ vrf }} + ip protocol ospf route-map {{ route_map }} + exit-vrf +! +{% elif route_map is defined and route_map is not none %} +ip protocol ospf route-map {{ route_map }} +{% endif %} +! router ospf {{ 'vrf ' + vrf if vrf is defined and vrf is not none }} {% if access_list is defined and access_list is not none %} {% for acl, acl_config in access_list.items() %} @@ -177,7 +186,3 @@ router ospf {{ 'vrf ' + vrf if vrf is defined and vrf is not none }} timers throttle spf {{ timers.throttle.spf.delay }} {{ timers.throttle.spf.initial_holdtime }} {{ timers.throttle.spf.max_holdtime }} {% endif %} ! -{% if route_map is defined and route_map is not none %} -ip protocol ospf route-map {{ route_map }} -{% endif %} -! |