diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-06 20:03:56 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-06 20:03:56 +0200 |
commit | 137c57eb6b26e772304e5f01595d87205037e247 (patch) | |
tree | 58940f6420643c1a0606c30f3aee8fae4ca1c2df /data/templates/frr | |
parent | 5b32ad62543dc917c36d7ad112f9e52001348244 (diff) | |
download | vyos-1x-137c57eb6b26e772304e5f01595d87205037e247.tar.gz vyos-1x-137c57eb6b26e772304e5f01595d87205037e247.zip |
vrf: isis: T3523: add route-map support for kernel routes
Diffstat (limited to 'data/templates/frr')
-rw-r--r-- | data/templates/frr/isis.frr.tmpl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/data/templates/frr/isis.frr.tmpl b/data/templates/frr/isis.frr.tmpl index c8e11399e..c74ac3101 100644 --- a/data/templates/frr/isis.frr.tmpl +++ b/data/templates/frr/isis.frr.tmpl @@ -1,4 +1,13 @@ ! +{% if vrf is defined and vrf is not none and route_map is defined and route_map is not none %} +vrf {{ vrf }} + ip protocol isis route-map {{ route_map }} + exit-vrf +! +{% elif route_map is defined and route_map is not none %} +ip protocol isis route-map {{ route_map }} +{% endif %} +! router isis VyOS {{ 'vrf ' + vrf if vrf is defined and vrf is not none }} net {{ net }} {% if dynamic_hostname is defined %} @@ -174,7 +183,3 @@ interface {{ iface }} {{ 'vrf ' + vrf if vrf is defined and vrf is not none }} {% endfor %} {% endif %} ! -{% if route_map is defined and route_map is not none %} -ip protocol isis route-map {{ route_map }} -{% endif %} -! |