summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-02-18 21:23:56 +0100
committerGitHub <noreply@github.com>2026-02-18 21:23:56 +0100
commitc386550aa8dd07026eba25bf40323c8d2439b6e2 (patch)
tree35ba1a7283d3438e69c8c703bc6a00b21b0ba394 /data
parentd87b82578323a9fe9f2678e183f55492c7c7057c (diff)
parent32db496ac1cb54fc46ad42f924803fd89bf92c75 (diff)
downloadvyos-1x-c386550aa8dd07026eba25bf40323c8d2439b6e2.tar.gz
vyos-1x-c386550aa8dd07026eba25bf40323c8d2439b6e2.zip
Merge pull request #4961 from jvoss/srv6_encapsulation
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
!