]> git.puffer.fish Git - matthieu/frr.git/commitdiff
doc: Add documentation for SRv6 SID formats CLI
authorCarmine Scarpitta <cscarpit@cisco.com>
Thu, 2 May 2024 15:08:15 +0000 (17:08 +0200)
committerCarmine Scarpitta <cscarpit@cisco.com>
Thu, 13 Jun 2024 12:54:16 +0000 (14:54 +0200)
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
doc/user/zebra.rst

index 37644dc88a781e94601f69e2b232b49e2679365a..900d2fd34305cb73943f2980b3b6cb796c85818e 100644 (file)
@@ -1021,6 +1021,35 @@ and this section also helps that case.
       !
    ...
 
+.. clicmd:: format NAME
+
+   Specify the SID allocation schema for the SIDs allocated from this locator. Currently,
+   FRR supports supports the following allocation schemas:
+
+   - `usid-f3216`
+   - `uncompressed`
+
+::
+
+   router# configure terminal
+   router(config)# segment-routinig
+   router(config-sr)# srv6
+   router(config-srv6)# locators
+   router(config-srv6-locators)# locator loc1
+   router(config-srv6-locator)# prefix fc00:0:1::/48
+   router(config-srv6-locator)# format usid-f3216
+
+   router(config-srv6-locator)# show run
+   ...
+   segment-routing
+    srv6
+     locators
+      locator loc1
+       prefix fc00:0:1::/48
+       format usid-f3216
+      !
+   ...
+
 .. clicmd:: encapsulation
 
    Configure parameters for SRv6 encapsulation.
@@ -1029,6 +1058,61 @@ and this section also helps that case.
 
    Configure the source address of the outer encapsulating IPv6 header.
 
+.. clicmd:: formats
+
+   Configure SRv6 SID formats.
+
+.. clicmd:: format NAME
+
+   Configure SRv6 SID format.
+
+.. clicmd:: compressed usid
+
+   Enable SRv6 uSID compression and configure SRv6 uSID compression parameters.
+
+.. clicmd:: local-id-block start START
+
+   Configure the start value for the Local ID Block (LIB).
+
+.. clicmd:: local-id-block explicit start START end END
+
+   Configure the start/end values for the Explicit LIB (ELIB).
+
+.. clicmd:: wide-local-id-block start START end END
+
+   Configure the start/end values for the Wide LIB (W-LIB).
+
+.. clicmd:: wide-local-id-block explicit start START
+
+   Configure the start value for the Explicit Wide LIB (EW-LIB).
+
+::
+
+   router# configure terminal
+   router(config)# segment-routinig
+   router(config-sr)# srv6
+   router(config-srv6)# formats
+   router(config-srv6-formats)# format usid-f3216
+   router(config-srv6-format)# compressed usid
+   router(config-srv6-format-usid)# local-id-block start 0xD000
+   router(config-srv6-format-usid)# local-id-block explicit start 0xF000 end 0xFDFF
+   router(config-srv6-format-usid)# wide-local-id-block start 0xFFF4 end 0xFFF5
+   router(config-srv6-format-usid)# wide-local-id-block explicit start 0xFFF4
+
+   router(config-srv6-locator)# show run
+   ...
+   segment-routing
+    srv6
+     formats
+      format usid-f3216
+       compressed usid
+        local-id-block start 0xD000
+        local-id-block explicit start 0xF000 end 0xFDFF
+        wide-local-id-block start 0xFFF4 end 0xFFF5
+        wide-local-id-block explicit start 0xFFF4
+      !
+   ...
+
 .. _multicast-rib-commands:
 
 Multicast RIB Commands