]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: Extend SRv6 static SIDs topotest to verify SID structure 18151/head
authorCarmine Scarpitta <cscarpit@cisco.com>
Sat, 8 Feb 2025 21:26:13 +0000 (22:26 +0100)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 13 Feb 2025 18:38:17 +0000 (18:38 +0000)
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)

tests/topotests/static_srv6_sids/expected_srv6_sids.json
tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_1.json
tests/topotests/static_srv6_sids/expected_srv6_sids_sid_delete_2.json

index 5799d979888b50c8c94148f3b4f5fd483b26d81d..de788784457bda6529d19294472e4489ddc0d521 100644 (file)
                                        "active": true,
                                        "weight": 1,
                                        "seg6local": {
-                                               "action": "End"
+                                               "action": "End",
+                                               "sidStructure": {
+                                                       "blockLen": 32,
+                                                       "nodeLen": 16,
+                                                       "funcLen": 0,
+                                                       "argLen": 0
+                                               }
                                        },
                                        "seg6localContext": {
 
                                        "active": true,
                                        "weight": 1,
                                        "seg6local": {
-                                               "action": "End.DT4"
+                                               "action": "End.DT4",
+                                               "sidStructure": {
+                                                       "blockLen": 32,
+                                                       "nodeLen": 16,
+                                                       "funcLen": 16,
+                                                       "argLen": 0
+                                               }
                                        },
                                        "seg6localContext": {
                                                "table": 10
                                        "active": true,
                                        "weight": 1,
                                        "seg6local": {
-                                               "action": "End.DT6"
+                                               "action": "End.DT6",
+                                               "sidStructure": {
+                                                       "blockLen": 32,
+                                                       "nodeLen": 16,
+                                                       "funcLen": 16,
+                                                       "argLen": 0
+                                               }
                                        },
                                        "seg6localContext": {
                                                "table": 20
                                        "active": true,
                                        "weight": 1,
                                        "seg6local": {
-                                               "action": "End.DT46"
+                                               "action": "End.DT46",
+                                               "sidStructure": {
+                                                       "blockLen": 32,
+                                                       "nodeLen": 16,
+                                                       "funcLen": 16,
+                                                       "argLen": 0
+                                               }
                                        },
                                        "seg6localContext": {
                                                "table": 30
index e1a2a16afef359481beb61849fdd5da5e274e2ec..dd0850fb3c892da3858e41c7d3334a99ca808816 100644 (file)
                                        "active": true,
                                        "weight": 1,
                                        "seg6local": {
-                                               "action": "End.DT4"
+                                               "action": "End.DT4",
+                                               "sidStructure": {
+                                                       "blockLen": 32,
+                                                       "nodeLen": 16,
+                                                       "funcLen": 16,
+                                                       "argLen": 0
+                                               }
                                        },
                                        "seg6localContext": {
                                                "table": 10
                                        "active": true,
                                        "weight": 1,
                                        "seg6local": {
-                                               "action": "End.DT6"
+                                               "action": "End.DT6",
+                                               "sidStructure": {
+                                                       "blockLen": 32,
+                                                       "nodeLen": 16,
+                                                       "funcLen": 16,
+                                                       "argLen": 0
+                                               }
                                        },
                                        "seg6localContext": {
                                                "table": 20
                                        "active": true,
                                        "weight": 1,
                                        "seg6local": {
-                                               "action": "End.DT46"
+                                               "action": "End.DT46",
+                                               "sidStructure": {
+                                                       "blockLen": 32,
+                                                       "nodeLen": 16,
+                                                       "funcLen": 16,
+                                                       "argLen": 0
+                                               }
                                        },
                                        "seg6localContext": {
                                                "table": 30
index b5801d354bc1b5ee723c662c6d6e4d1dc074dc89..4051c01425e68a90e93cf562e46e3170bcbfe3c6 100644 (file)
                                        "active": true,
                                        "weight": 1,
                                        "seg6local": {
-                                               "action": "End.DT4"
+                                               "action": "End.DT4",
+                                               "sidStructure": {
+                                                       "blockLen": 32,
+                                                       "nodeLen": 16,
+                                                       "funcLen": 16,
+                                                       "argLen": 0
+                                               }
                                        },
                                        "seg6localContext": {
                                                "table": 10
                                        "active": true,
                                        "weight": 1,
                                        "seg6local": {
-                                               "action": "End.DT46"
+                                               "action": "End.DT46",
+                                               "sidStructure": {
+                                                       "blockLen": 32,
+                                                       "nodeLen": 16,
+                                                       "funcLen": 16,
+                                                       "argLen": 0
+                                               }
                                        },
                                        "seg6localContext": {
                                                "table": 30