diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2025-01-30 19:26:57 +0100 | 
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2025-01-30 19:28:34 +0100 | 
| commit | 339c49bcff61aacdd63e8f2c4f18a3232fb4ca9d (patch) | |
| tree | 89f0667335ee64826423b89695edcb2c68b8dc2d | |
| parent | a879aebf6923f159298dd9a25c36dde542154c98 (diff) | |
tests: Add testcase for static End/uN validation
This commit adds a testcase to validate static End/uN allocation.
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
| -rw-r--r-- | tests/topotests/static_srv6_sids/expected_srv6_sids.json | 35 | ||||
| -rw-r--r-- | tests/topotests/static_srv6_sids/r1/frr.conf | 1 | 
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/topotests/static_srv6_sids/expected_srv6_sids.json b/tests/topotests/static_srv6_sids/expected_srv6_sids.json index e1a2a16afe..5799d97988 100644 --- a/tests/topotests/static_srv6_sids/expected_srv6_sids.json +++ b/tests/topotests/static_srv6_sids/expected_srv6_sids.json @@ -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", diff --git a/tests/topotests/static_srv6_sids/r1/frr.conf b/tests/topotests/static_srv6_sids/r1/frr.conf index 999e35c35b..b4904d9ac2 100644 --- a/tests/topotests/static_srv6_sids/r1/frr.conf +++ b/tests/topotests/static_srv6_sids/r1/frr.conf @@ -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  | 
