summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-10 21:13:54 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-12-13 12:04:43 +0000
commit5904a4163d004561b8cb51ad76212a841ce85832 (patch)
tree4f3be6ea2a1d80f3795bec344af85e680ced2545 /op-mode-definitions
parent94380fe28b0a4a5e4bcd3c4efd7d5ac2c68fb3da (diff)
downloadvyos-1x-5904a4163d004561b8cb51ad76212a841ce85832.tar.gz
vyos-1x-5904a4163d004561b8cb51ad76212a841ce85832.zip
srv6: T591: initial implementation to support locator definition
VyOS CLI set protocols segment-routing srv6 locator bar prefix '2001:b::/64' set protocols segment-routing srv6 locator foo behavior-usid set protocols segment-routing srv6 locator foo prefix '2001:a::/64' Will generate in FRR segment-routing srv6 locators locator bar prefix 2001:b::/64 block-len 40 node-len 24 func-bits 16 exit ! locator foo prefix 2001:a::/64 block-len 40 node-len 24 func-bits 16 behavior usid exit ! exit ! exit ! exit (cherry picked from commit ca301cdd4746187f96ff84e411fda6a84e33f237)
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-segment-routing.xml.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/op-mode-definitions/show-segment-routing.xml.in b/op-mode-definitions/show-segment-routing.xml.in
new file mode 100644
index 000000000..ebdb51a61
--- /dev/null
+++ b/op-mode-definitions/show-segment-routing.xml.in
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="segment-routing">
+ <properties>
+ <help>Show Segment Routing</help>
+ </properties>
+ <children>
+ <node name="srv6">
+ <properties>
+ <help>Segment Routing SRv6</help>
+ </properties>
+ <children>
+ <node name="locator">
+ <properties>
+ <help>Locator Information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>