diff options
author | aapostoliuk <108394744+aapostoliuk@users.noreply.github.com> | 2025-05-29 15:35:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-29 14:35:09 +0200 |
commit | a439be2447f5f7e8be19c6f5b86f8dcc3d056385 (patch) | |
tree | 6b1172c4e2b313eb9d9e2e709e3b5f3dcf0c0ed8 /data | |
parent | 3e5eb3a4bd3935a7473b84558691f77793045021 (diff) | |
download | vyos-1x-a439be2447f5f7e8be19c6f5b86f8dcc3d056385.tar.gz vyos-1x-a439be2447f5f7e8be19c6f5b86f8dcc3d056385.zip |
zebra: T7349: Added importing routes from non to the kernel routing table
* zebra: T7349: Added importing routes from non to the kernel routing table
Added importing routes from non to the kernel routing table.
---------
Co-authored-by: Christian Breunig <christian@breunig.cc>
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/frr/zebra.route-map.frr.j2 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/frr/zebra.route-map.frr.j2 b/data/templates/frr/zebra.route-map.frr.j2 index 70a810f43..0d6d01930 100644 --- a/data/templates/frr/zebra.route-map.frr.j2 +++ b/data/templates/frr/zebra.route-map.frr.j2 @@ -1,6 +1,12 @@ ! {{ 'no ' if disable_forwarding is vyos_defined }}{{ afi }} forwarding ! +{% if import_table is vyos_defined %} +{% for table_num, table_config in import_table.items() %} +ip import-table {{ table_num }} {{ 'distance ' ~ table_config.distance if table_config.distance is vyos_defined }} {{ 'route-map ' ~ table_config.route_map if table_config.route_map is vyos_defined }} +{% endfor %} +{% endif %} +! {% if nht.no_resolve_via_default is vyos_defined %} no {{ afi }} nht resolve-via-default {% endif %} |