summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-03 14:11:06 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-03 14:11:06 +0200
commit7d3ae5fc3ba113b67281c9605f3a8a71b924efe2 (patch)
tree585f460146fbc2de96d9a8599f47dc5bd1e4a0b8 /data
parente66c5a56905a7370be0e14cd34aee608c7e7b54a (diff)
downloadvyos-1x-7d3ae5fc3ba113b67281c9605f3a8a71b924efe2.tar.gz
vyos-1x-7d3ae5fc3ba113b67281c9605f3a8a71b924efe2.zip
isis: T3156: add segment routing local-block for ISIS
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/isisd.frr.tmpl7
1 files changed, 4 insertions, 3 deletions
diff --git a/data/templates/frr/isisd.frr.tmpl b/data/templates/frr/isisd.frr.tmpl
index 33adac64e..238541903 100644
--- a/data/templates/frr/isisd.frr.tmpl
+++ b/data/templates/frr/isisd.frr.tmpl
@@ -114,10 +114,11 @@ router isis VyOS {{ 'vrf ' + vrf if vrf is vyos_defined }}
segment-routing node-msd {{ segment_routing.maximum_label_depth }}
{% endif %}
{% if segment_routing.global_block is vyos_defined %}
+{% if segment_routing.local_block is vyos_defined %}
+ segment-routing global-block {{ segment_routing.global_block.low_label_value }} {{ segment_routing.global_block.high_label_value }} local-block {{ segment_routing.local_block.low_label_value }} {{ segment_routing.local_block.high_label_value }}
+{% else %}
segment-routing global-block {{ segment_routing.global_block.low_label_value }} {{ segment_routing.global_block.high_label_value }}
-{% endif %}
-{% if segment_routing.local_block is vyos_defined %}
- segment-routing local-block {{ segment_routing.global_block.low_label_value }} {{ segment_routing.local_block.high_label_value }}
+{% endif %}
{% endif %}
{% if segment_routing.prefix is vyos_defined %}
{% for prefixes in segment_routing.prefix %}