tests: Extend SRv6 static SIDs topotest to verify SID structure

The `static_srv6_sids` topotest verifies that staticd correctly
programs the SIDs in the zebra RIB. Currently, the topotest only
validates the programmed behavior and SID attributes.

This commit extends the topotest to also validate the SID structure.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
(cherry picked from commit a6d02fe2fb)
This commit is contained in:
Carmine Scarpitta 2025-02-08 22:26:13 +01:00 committed by Mergify
parent 2a23344123
commit 92fa579d04
3 changed files with 63 additions and 9 deletions

View File

@ -25,7 +25,13 @@
"active": true, "active": true,
"weight": 1, "weight": 1,
"seg6local": { "seg6local": {
"action": "End" "action": "End",
"sidStructure": {
"blockLen": 32,
"nodeLen": 16,
"funcLen": 0,
"argLen": 0
}
}, },
"seg6localContext": { "seg6localContext": {
@ -60,7 +66,13 @@
"active": true, "active": true,
"weight": 1, "weight": 1,
"seg6local": { "seg6local": {
"action": "End.DT4" "action": "End.DT4",
"sidStructure": {
"blockLen": 32,
"nodeLen": 16,
"funcLen": 16,
"argLen": 0
}
}, },
"seg6localContext": { "seg6localContext": {
"table": 10 "table": 10
@ -95,7 +107,13 @@
"active": true, "active": true,
"weight": 1, "weight": 1,
"seg6local": { "seg6local": {
"action": "End.DT6" "action": "End.DT6",
"sidStructure": {
"blockLen": 32,
"nodeLen": 16,
"funcLen": 16,
"argLen": 0
}
}, },
"seg6localContext": { "seg6localContext": {
"table": 20 "table": 20
@ -130,7 +148,13 @@
"active": true, "active": true,
"weight": 1, "weight": 1,
"seg6local": { "seg6local": {
"action": "End.DT46" "action": "End.DT46",
"sidStructure": {
"blockLen": 32,
"nodeLen": 16,
"funcLen": 16,
"argLen": 0
}
}, },
"seg6localContext": { "seg6localContext": {
"table": 30 "table": 30

View File

@ -25,7 +25,13 @@
"active": true, "active": true,
"weight": 1, "weight": 1,
"seg6local": { "seg6local": {
"action": "End.DT4" "action": "End.DT4",
"sidStructure": {
"blockLen": 32,
"nodeLen": 16,
"funcLen": 16,
"argLen": 0
}
}, },
"seg6localContext": { "seg6localContext": {
"table": 10 "table": 10
@ -60,7 +66,13 @@
"active": true, "active": true,
"weight": 1, "weight": 1,
"seg6local": { "seg6local": {
"action": "End.DT6" "action": "End.DT6",
"sidStructure": {
"blockLen": 32,
"nodeLen": 16,
"funcLen": 16,
"argLen": 0
}
}, },
"seg6localContext": { "seg6localContext": {
"table": 20 "table": 20
@ -95,7 +107,13 @@
"active": true, "active": true,
"weight": 1, "weight": 1,
"seg6local": { "seg6local": {
"action": "End.DT46" "action": "End.DT46",
"sidStructure": {
"blockLen": 32,
"nodeLen": 16,
"funcLen": 16,
"argLen": 0
}
}, },
"seg6localContext": { "seg6localContext": {
"table": 30 "table": 30

View File

@ -25,7 +25,13 @@
"active": true, "active": true,
"weight": 1, "weight": 1,
"seg6local": { "seg6local": {
"action": "End.DT4" "action": "End.DT4",
"sidStructure": {
"blockLen": 32,
"nodeLen": 16,
"funcLen": 16,
"argLen": 0
}
}, },
"seg6localContext": { "seg6localContext": {
"table": 10 "table": 10
@ -60,7 +66,13 @@
"active": true, "active": true,
"weight": 1, "weight": 1,
"seg6local": { "seg6local": {
"action": "End.DT46" "action": "End.DT46",
"sidStructure": {
"blockLen": 32,
"nodeLen": 16,
"funcLen": 16,
"argLen": 0
}
}, },
"seg6localContext": { "seg6localContext": {
"table": 30 "table": 30