summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJonathan Voss <jvoss@onvox.net>2024-12-24 14:18:43 +0000
committerChristian Breunig <christian@breunig.cc>2026-02-15 13:17:09 +0100
commit32db496ac1cb54fc46ad42f924803fd89bf92c75 (patch)
treec73348c85f8a3e7ed942fa84db099488d59ed3fe /data
parent82461ce7856aaf91d1b8a85ca45080e26783fc5e (diff)
downloadvyos-1x-32db496ac1cb54fc46ad42f924803fd89bf92c75.tar.gz
vyos-1x-32db496ac1cb54fc46ad42f924803fd89bf92c75.zip
srv6: T6977: add srv6 encapsulation source-address
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/zebra.segment_routing.frr.j227
1 files changed, 18 insertions, 9 deletions
diff --git a/data/templates/frr/zebra.segment_routing.frr.j2 b/data/templates/frr/zebra.segment_routing.frr.j2
index 718d47d8f..a0bcc9210 100644
--- a/data/templates/frr/zebra.segment_routing.frr.j2
+++ b/data/templates/frr/zebra.segment_routing.frr.j2
@@ -1,23 +1,32 @@
!
-{% if srv6.locator is vyos_defined %}
+{% if srv6 is vyos_defined %}
segment-routing
srv6
+{% if srv6.encapsulation is vyos_defined %}
+ encapsulation
+{% if srv6.encapsulation.source_address is vyos_defined %}
+ source-address {{ srv6.encapsulation.source_address }}
+{% endif %}
+ exit
+{% endif %}
+{% if srv6.locator is vyos_defined %}
locators
-{% for locator, locator_config in srv6.locator.items() %}
+{% for locator, locator_config in srv6.locator.items() %}
locator {{ locator }}
-{% if locator_config.prefix is vyos_defined %}
+{% if locator_config.prefix is vyos_defined %}
prefix {{ locator_config.prefix }} block-len {{ locator_config.block_len }} node-len {{ locator_config.node_len }} func-bits {{ locator_config.func_bits }}
-{% endif %}
-{% if locator_config.behavior_usid is vyos_defined %}
+{% endif %}
+{% if locator_config.behavior_usid is vyos_defined %}
behavior usid
-{% endif %}
-{% if locator_config.format is vyos_defined %}
+{% endif %}
+{% if locator_config.format is vyos_defined %}
format {{ locator_config.format }}
-{% endif %}
+{% endif %}
exit
!
-{% endfor %}
+{% endfor %}
exit
+{% endif %}
!
exit
!