Skip to content

Commit

Permalink
Merge pull request #1893 from BYGX-wcr/srv6_static_config_hld
Browse files Browse the repository at this point in the history
Change the key of SRV6_MY_SIDS table from ipv6-address type to ipv6-prefix type
  • Loading branch information
eddieruan-alibaba authored Jan 18, 2025
2 parents 1ba76ff + 1825817 commit a5e85ef
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions doc/srv6/srv6_static_config_hld.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,23 +127,25 @@ Schema:
; New table
; holds local SID to behavior mapping, the keys are the locator name plus the full IPv6 addresses of the SIDs
key = SRV6_MY_SIDS|locator|ip_address
key = SRV6_MY_SIDS|locator|ip_prefix
; field = value
action = behavior ; behaviors defined for the SID, default uN
decap_dscp_mode = decap_dscp_mode ; Mandatory, the parameter that specifies how the node should handle DSCP bits when it performs decapsulation
decap_vrf = VRF_TABLE.key ; Optional, VRF name for decapsulation actions, default "default", only applicable to uDT4/uDT46/uDT6 actions
decap_dscp_mode = decap_dscp_mode ; Optional, the parameter that specifies how the node should handle DSCP bits when it performs decapsulation, default "uniform", only applicable to uDT4/uDT46/uDT6 actions
For example:
"SRV6_MY_SIDS" : {
"loc1|FCBB:BBBB:20::" : {
"action": "uN"
"loc1|FCBB:BBBB:20::/48" : {
"action": "uN",
"decap_dscp_mode": "pipe"
},
"loc1|FCBB:BBBB:20:F1::" : {
"loc1|FCBB:BBBB:20:F1::/64" : {
"action": "uDT46",
"decap_dscp_mode": "pipe"
},
"loc2|FCBB:BBBB:21::" : {
"action": "uN"
"loc2|FCBB:BBBB:21::/48" : {
"action": "uN",
"decap_dscp_mode": "uniform"
},
}
```
Expand Down Expand Up @@ -178,8 +180,8 @@ module: sonic-srv6
| +--rw arg_len? uint8
| +--rw vrf? union
+--rw SRV6_MY_SIDS
+--rw SRV6_MY_SIDS_LIST* [locator ip_address]
+--rw ip_address inet:ipv6-address
+--rw SRV6_MY_SIDS_LIST* [locator ip_prefix]
+--rw ip_prefix inet:ipv6-prefix
+--rw locator -> /sonic-srv6/SRV6_MY_LOCATORS/SRV6_MY_LOCATORS_LIST/locator_name
+--rw action? enumeration
+--rw decap_vrf? union
Expand Down

0 comments on commit a5e85ef

Please sign in to comment.