-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for static-route yang model (#11932)
*[Yang] support for static-route yang model #11932
- Loading branch information
Showing
5 changed files
with
1,220 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/sonic-yang-models/tests/yang_model_tests/tests/static_route.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"STATIC_ROUTE_TEST": { | ||
"desc": "Configure basic static route with default VRFs with PREFIX" | ||
}, | ||
"STATIC_ROUTE_TEST_WITH_INTERFACE": { | ||
"desc": "Configure with nexthop as interface instead of IP address" | ||
}, | ||
"STATIC_ROUTE_TEST_WITH_BLACKHOLE": { | ||
"desc": "Configure with nexthop as blackhole" | ||
}, | ||
"STATIC_ROUTE_TEST_WITH_VRF": { | ||
"desc": "Configure with routes in non default VRF" | ||
}, | ||
"STATIC_ROUTE_TEST_WITH_KEY_VRF_MGMT": { | ||
"desc": "Configure with routes in mgmt VRF as key" | ||
}, | ||
"STATIC_ROUTE_TEST_WITH_VRF_MGMT": { | ||
"desc": "Configure with routes with mgmt VRF as next hop" | ||
}, | ||
"STATIC_ROUTE_TEST_WITH_VRF_LEAK": { | ||
"desc": "Configure with route leak across VRFS" | ||
}, | ||
"STATIC_ROUTE_TEST_ECMP": { | ||
"desc": "Configure comma separated values for ECMP, with nexthop as PREFIX" | ||
}, | ||
"STATIC_ROUTE_TEST_ECMP_WITH_INTERFACE": { | ||
"desc": "Configure comma separated values with nexthop as INTERFACE" | ||
}, | ||
"STATIC_ROUTE_TEST_ECMP_WITH_MGMT": { | ||
"desc": "Configure comma separated values with one nexthop as mgmt" | ||
}, | ||
"STATIC_ROUTE_TEST_DISTANCE_INVALID": { | ||
"desc": "Configure with invalid distance number", | ||
"eStrKey": "Pattern" | ||
}, | ||
"STATIC_ROUTE_TEST_BLACKHOLE_INVALID": { | ||
"desc": "Configure with invalid value for blackhole", | ||
"eStrKey": "Pattern" | ||
}, | ||
"STATIC_ROUTE_TEST_NEXTHOP_VRF_INVALID": { | ||
"desc": "Configure with invalid value for VRF", | ||
"eStrKey": "Pattern" | ||
}, | ||
"STATIC_ROUTE_TEST_ECMP_DISTANCE_INVALID": { | ||
"desc": "Configure with invalid distance for ECMP", | ||
"eStrKey": "Pattern" | ||
}, | ||
"STATIC_ROUTE_TEST_ECMP_BLACKHOLE_INVALID": { | ||
"desc": "Configure with invalid blackhop for ECMP", | ||
"eStrKey": "Pattern" | ||
}, | ||
"STATIC_ROUTE_TEST_ECMP_NEXTHOP_VRF_INVALID": { | ||
"desc": "Configure with invalid vrf for ECMP", | ||
"eStrKey": "Pattern" | ||
} | ||
|
||
} |
Oops, something went wrong.