summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarmine Scarpitta <cscarpit@cisco.com>2025-02-08 22:26:13 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2025-02-13 18:38:17 +0000
commit92fa579d04ee9f6ee7f978cdfc104e92a3af7b9a (patch)
treef44ec464a63e587093671bb501ef87ab10b960cc /tests
parent2a23344123ccd31c373c7157fc0545938b192eb9 (diff)
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 a6d02fe2fb38b8e0c2e1c25fd863f6f96c2c40a6)
Diffstat (limited to 'tests')
-rw-r--r--tests/topotests/static_srv6_sids/expected_srv6_sids.json32
-rw-r--r--tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_1.json24
-rw-r--r--tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_2.json16
3 files changed, 63 insertions, 9 deletions
diff --git a/tests/topotests/static_srv6_sids/expected_srv6_sids.json b/tests/topotests/static_srv6_sids/expected_srv6_sids.json
index 5799d97988..de78878445 100644
--- a/tests/topotests/static_srv6_sids/expected_srv6_sids.json
+++ b/tests/topotests/static_srv6_sids/expected_srv6_sids.json
@@ -25,7 +25,13 @@
"active": true,
"weight": 1,
"seg6local": {
- "action": "End"
+ "action": "End",
+ "sidStructure": {
+ "blockLen": 32,
+ "nodeLen": 16,
+ "funcLen": 0,
+ "argLen": 0
+ }
},
"seg6localContext": {
@@ -60,7 +66,13 @@
"active": true,
"weight": 1,
"seg6local": {
- "action": "End.DT4"
+ "action": "End.DT4",
+ "sidStructure": {
+ "blockLen": 32,
+ "nodeLen": 16,
+ "funcLen": 16,
+ "argLen": 0
+ }
},
"seg6localContext": {
"table": 10
@@ -95,7 +107,13 @@
"active": true,
"weight": 1,
"seg6local": {
- "action": "End.DT6"
+ "action": "End.DT6",
+ "sidStructure": {
+ "blockLen": 32,
+ "nodeLen": 16,
+ "funcLen": 16,
+ "argLen": 0
+ }
},
"seg6localContext": {
"table": 20
@@ -130,7 +148,13 @@
"active": true,
"weight": 1,
"seg6local": {
- "action": "End.DT46"
+ "action": "End.DT46",
+ "sidStructure": {
+ "blockLen": 32,
+ "nodeLen": 16,
+ "funcLen": 16,
+ "argLen": 0
+ }
},
"seg6localContext": {
"table": 30
diff --git a/tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_1.json b/tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_1.json
index e1a2a16afe..dd0850fb3c 100644
--- a/tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_1.json
+++ b/tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_1.json
@@ -25,7 +25,13 @@
"active": true,
"weight": 1,
"seg6local": {
- "action": "End.DT4"
+ "action": "End.DT4",
+ "sidStructure": {
+ "blockLen": 32,
+ "nodeLen": 16,
+ "funcLen": 16,
+ "argLen": 0
+ }
},
"seg6localContext": {
"table": 10
@@ -60,7 +66,13 @@
"active": true,
"weight": 1,
"seg6local": {
- "action": "End.DT6"
+ "action": "End.DT6",
+ "sidStructure": {
+ "blockLen": 32,
+ "nodeLen": 16,
+ "funcLen": 16,
+ "argLen": 0
+ }
},
"seg6localContext": {
"table": 20
@@ -95,7 +107,13 @@
"active": true,
"weight": 1,
"seg6local": {
- "action": "End.DT46"
+ "action": "End.DT46",
+ "sidStructure": {
+ "blockLen": 32,
+ "nodeLen": 16,
+ "funcLen": 16,
+ "argLen": 0
+ }
},
"seg6localContext": {
"table": 30
diff --git a/tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_2.json b/tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_2.json
index b5801d354b..4051c01425 100644
--- a/tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_2.json
+++ b/tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_2.json
@@ -25,7 +25,13 @@
"active": true,
"weight": 1,
"seg6local": {
- "action": "End.DT4"
+ "action": "End.DT4",
+ "sidStructure": {
+ "blockLen": 32,
+ "nodeLen": 16,
+ "funcLen": 16,
+ "argLen": 0
+ }
},
"seg6localContext": {
"table": 10
@@ -60,7 +66,13 @@
"active": true,
"weight": 1,
"seg6local": {
- "action": "End.DT46"
+ "action": "End.DT46",
+ "sidStructure": {
+ "blockLen": 32,
+ "nodeLen": 16,
+ "funcLen": 16,
+ "argLen": 0
+ }
},
"seg6localContext": {
"table": 30