Skip to content

Commit a6d02fe

Browse files
committed
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>
1 parent 312f7b3 commit a6d02fe

File tree

3 files changed

+63
-9
lines changed

3 files changed

+63
-9
lines changed

tests/topotests/static_srv6_sids/expected_srv6_sids.json

+28-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@
2525
"active": true,
2626
"weight": 1,
2727
"seg6local": {
28-
"action": "End"
28+
"action": "End",
29+
"sidStructure": {
30+
"blockLen": 32,
31+
"nodeLen": 16,
32+
"funcLen": 0,
33+
"argLen": 0
34+
}
2935
},
3036
"seg6localContext": {
3137

@@ -60,7 +66,13 @@
6066
"active": true,
6167
"weight": 1,
6268
"seg6local": {
63-
"action": "End.DT4"
69+
"action": "End.DT4",
70+
"sidStructure": {
71+
"blockLen": 32,
72+
"nodeLen": 16,
73+
"funcLen": 16,
74+
"argLen": 0
75+
}
6476
},
6577
"seg6localContext": {
6678
"table": 10
@@ -95,7 +107,13 @@
95107
"active": true,
96108
"weight": 1,
97109
"seg6local": {
98-
"action": "End.DT6"
110+
"action": "End.DT6",
111+
"sidStructure": {
112+
"blockLen": 32,
113+
"nodeLen": 16,
114+
"funcLen": 16,
115+
"argLen": 0
116+
}
99117
},
100118
"seg6localContext": {
101119
"table": 20
@@ -130,7 +148,13 @@
130148
"active": true,
131149
"weight": 1,
132150
"seg6local": {
133-
"action": "End.DT46"
151+
"action": "End.DT46",
152+
"sidStructure": {
153+
"blockLen": 32,
154+
"nodeLen": 16,
155+
"funcLen": 16,
156+
"argLen": 0
157+
}
134158
},
135159
"seg6localContext": {
136160
"table": 30

tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_1.json

+21-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@
2525
"active": true,
2626
"weight": 1,
2727
"seg6local": {
28-
"action": "End.DT4"
28+
"action": "End.DT4",
29+
"sidStructure": {
30+
"blockLen": 32,
31+
"nodeLen": 16,
32+
"funcLen": 16,
33+
"argLen": 0
34+
}
2935
},
3036
"seg6localContext": {
3137
"table": 10
@@ -60,7 +66,13 @@
6066
"active": true,
6167
"weight": 1,
6268
"seg6local": {
63-
"action": "End.DT6"
69+
"action": "End.DT6",
70+
"sidStructure": {
71+
"blockLen": 32,
72+
"nodeLen": 16,
73+
"funcLen": 16,
74+
"argLen": 0
75+
}
6476
},
6577
"seg6localContext": {
6678
"table": 20
@@ -95,7 +107,13 @@
95107
"active": true,
96108
"weight": 1,
97109
"seg6local": {
98-
"action": "End.DT46"
110+
"action": "End.DT46",
111+
"sidStructure": {
112+
"blockLen": 32,
113+
"nodeLen": 16,
114+
"funcLen": 16,
115+
"argLen": 0
116+
}
99117
},
100118
"seg6localContext": {
101119
"table": 30

tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_2.json

+14-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@
2525
"active": true,
2626
"weight": 1,
2727
"seg6local": {
28-
"action": "End.DT4"
28+
"action": "End.DT4",
29+
"sidStructure": {
30+
"blockLen": 32,
31+
"nodeLen": 16,
32+
"funcLen": 16,
33+
"argLen": 0
34+
}
2935
},
3036
"seg6localContext": {
3137
"table": 10
@@ -60,7 +66,13 @@
6066
"active": true,
6167
"weight": 1,
6268
"seg6local": {
63-
"action": "End.DT46"
69+
"action": "End.DT46",
70+
"sidStructure": {
71+
"blockLen": 32,
72+
"nodeLen": 16,
73+
"funcLen": 16,
74+
"argLen": 0
75+
}
6476
},
6577
"seg6localContext": {
6678
"table": 30

0 commit comments

Comments
 (0)