Skip to content

Commit 2c51a1d

Browse files
committed
doc: Add support for srv6 locator-opcode
Update the srv6 locator configuration and srv6 locator detail [json] display sections in zebra.rst. Signed-off-by: Yuqing Zhao <[email protected]>
1 parent 99d8f6f commit 2c51a1d

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

doc/user/zebra.rst

+41
Original file line numberDiff line numberDiff line change
@@ -894,19 +894,30 @@ and this section also helps that case.
894894
function development holds the owner of the chunk of this locator, and no
895895
other routing protocol will use this area.
896896

897+
Additionally, if a static local SID is configured,
898+
it will also be displayed in this section.
899+
897900
::
898901

899902
router# show segment-routing srv6 locator loc1 detail
900903
Name: loc1
901904
Prefix: 2001:db8:1:1::/64
902905
Chunks:
903906
- prefix: 2001:db8:1:1::/64, owner: system
907+
sids:
908+
-opcode ::fff1:11:0:0:0/128
909+
sidaction End.DT46
910+
vrf Vrf1
904911

905912
router# show segment-routing srv6 locator loc2 detail
906913
Name: loc2
907914
Prefix: 2001:db8:2:2::/64
908915
Chunks:
909916
- prefix: 2001:db8:2:2::/64, owner: sharp
917+
sids:
918+
-opcode ::fff1:12:0:0:0/128
919+
sidaction End.DT46
920+
vrf Vrf2
910921

911922
.. clicmd:: segment-routing
912923

@@ -991,6 +1002,36 @@ and this section also helps that case.
9911002
!
9921003
...
9931004

1005+
.. clicmd:: opcode WORD <end|end-dt4|end-dt46|end-dt6> [vrf VRF]
1006+
1007+
Specify the opcode manually. Configuring a local sid in a purely static mode
1008+
by specifying the opcode would generate a unique mySID table entry.
1009+
This feature will support the configuration of static SRv6 decapsulation on the system.
1010+
When configuring the local sid, if the action is set to 'end', no vrf should be set.
1011+
However, for any other action, it is necessary to specify a specific vrf.
1012+
1013+
::
1014+
router# configure terminal
1015+
router(config)# segment-routing
1016+
router(config-sr)# srv6
1017+
router(config-srv6)# locators
1018+
router(config-srv6-locators)# locator loc1
1019+
router(config-srv6-locator)# prefix fd00:202:202::/48 block-len 32 node-len 16 func-bits 16
1020+
router(config-srv6-locator)# opcode ::fff1:11:0:0:0 end-dt46 vrf Vrf1
1021+
router(config-srv6-locator)# opcode ::fff1:12:0:0:0 end-dt46 vrf Vrf2
1022+
1023+
router(config-srv6-locator)# show run
1024+
...
1025+
segment-routing
1026+
srv6
1027+
locators
1028+
locator loc1
1029+
prefix fd00:202:202::/48 block-len 32 node-len 16 func-bits 16
1030+
opcode ::fff1:11:0:0:0 end-dt46 vrf Vrf1
1031+
opcode ::fff1:12:0:0:0 end-dt46 vrf Vrf2
1032+
!
1033+
...
1034+
9941035
.. clicmd:: behavior usid
9951036

9961037
Specify the SRv6 locator as a Micro-segment (uSID) locator. When a locator is

0 commit comments

Comments
 (0)