]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: Add testcase for static End/uN validation
authorCarmine Scarpitta <cscarpit@cisco.com>
Thu, 30 Jan 2025 18:26:57 +0000 (19:26 +0100)
committerCarmine Scarpitta <cscarpit@cisco.com>
Thu, 30 Jan 2025 18:28:34 +0000 (19:28 +0100)
This commit adds a testcase to validate static End/uN allocation.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
tests/topotests/static_srv6_sids/expected_srv6_sids.json
tests/topotests/static_srv6_sids/r1/frr.conf

index e1a2a16afef359481beb61849fdd5da5e274e2ec..5799d979888b50c8c94148f3b4f5fd483b26d81d 100644 (file)
@@ -1,4 +1,39 @@
 {
+       "fcbb:bbbb:1::/48": [
+               {
+                       "prefix": "fcbb:bbbb:1::/48",
+                       "prefixLen": 48,
+                       "protocol": "static",
+                       "vrfId": 0,
+                       "vrfName": "default",
+                       "selected": true,
+                       "destSelected": true,
+                       "distance": 1,
+                       "metric": 0,
+                       "installed": true,
+                       "table": 254,
+                       "internalStatus": 16,
+                       "internalFlags": 9,
+                       "internalNextHopNum": 1,
+                       "internalNextHopActiveNum": 1,
+                       "nexthops": [
+                               {
+                                       "flags": 3,
+                                       "fib": true,
+                                       "directlyConnected": true,
+                                       "interfaceName": "sr0",
+                                       "active": true,
+                                       "weight": 1,
+                                       "seg6local": {
+                                               "action": "End"
+                                       },
+                                       "seg6localContext": {
+
+                                       }
+                               }
+                       ]
+               }
+       ],
        "fcbb:bbbb:1:fe10::/64": [
                {
                        "prefix": "fcbb:bbbb:1:fe10::/64",
index 999e35c35bf365ab87f359de68ee02c1f54fee8b..b4904d9ac286ae1289b5ea100cc441ccb0311113 100644 (file)
@@ -8,6 +8,7 @@ segment-routing
    !
   !
   static-sids
+   sid fcbb:bbbb:1::/48 locator MAIN behavior uN
    sid fcbb:bbbb:1:fe10::/64 locator MAIN behavior uDT4 vrf Vrf10
    sid fcbb:bbbb:1:fe20::/64 locator MAIN behavior uDT6 vrf Vrf20
    sid fcbb:bbbb:1:fe30::/64 locator MAIN behavior uDT46 vrf Vrf30