forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yang]Add FG-ECMP yang model (sonic-net#14003)
Why I did it Add yang model definition for FG_NHG_MEMBER, FG_NHG and FG_NHG_PREFIX from request: sonic-net#12457 How I did it Add yang model refereeing to description https://github.com/sonic-net/SONiC/blob/master/doc/ecmp/fine_grained_next_hop_hld.md How to verify it pyang tests
- Loading branch information
Showing
6 changed files
with
721 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
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
59 changes: 59 additions & 0 deletions
59
src/sonic-yang-models/tests/yang_model_tests/tests/fine-grained-ecmp.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,59 @@ | ||
{ | ||
"FG_NHG_TEST": { | ||
"desc": "Fine-grained ECMP next-hop group configuration in FG_NHG_LIST table." | ||
}, | ||
"FG_NHG_PREFIX_TEST": { | ||
"desc": "Fine-grained ECMP prefix configuration in FG_NHG_PREFIX_LIST table." | ||
}, | ||
"FG_NHG_MEMBER_TEST": { | ||
"desc": "Fine-grained ECMP next-hop member configuration in FG_NHG_MEMBER_LIST table." | ||
}, | ||
"FG_NHG_MEMBER_MULTI_LINK_TEST": { | ||
"desc": "Fine-grained ECMP next-hop member configuration with multiple links in FG_NHG_MEMBER_LIST table." | ||
}, | ||
"FG_NHG_TEST_DUPLICATE_NAME": { | ||
"desc": "Fine-grained ECMP next-hop group configuration with duplicate name in FG_NHG_LIST table.", | ||
"eStr": "Duplicated instance of \"FG_NHG_LIST\" list." | ||
}, | ||
"FG_NHG_MEMBER_TEST_INVALID_IP": { | ||
"desc": "Fine-grained ECMP next-hop member configuration with invalid IP value in FG_NHG_MEMBER_LIST table.", | ||
"eStrKey": "InvalidValue", | ||
"eStr": [ | ||
"next_hop_ip" | ||
] | ||
}, | ||
"FG_NHG_PREFIX_TEST_INVALID_PREFIX": { | ||
"desc": "Fine-grained ECMP prefix configuration with invalid prefix value in FG_NHG_PREFIX_LIST table.", | ||
"eStrKey": "InvalidValue", | ||
"eStr": [ | ||
"ip_prefix" | ||
] | ||
}, | ||
"FG_NHG_MEMBER_TEST_INVALID_LINK": { | ||
"desc": "Fine-grained ECMP next-hop member configuration with invalid link value in FG_NHG_MEMBER_LIST table.", | ||
"eStrKey": "InvalidValue", | ||
"eStr": [ | ||
"link" | ||
] | ||
}, | ||
"FG_NHG_MEMBER_TEST_MISSING_FG_NHG_REF": { | ||
"desc": "Fine-grained ECMP next-hop member configuration with missing FG_NHG reference in FG_NHG_MEMBER_LIST table.", | ||
"eStr": "Missing required element \"FG_NHG\" in \"FG_NHG_MEMBER_LIST\". " | ||
}, | ||
"FG_NHG_PREFIX_TEST_MISSING_FG_NHG_REF": { | ||
"desc": "Fine-grained ECMP prefix configuration with missing FG_NHG reference in FG_NHG_PREFIX_LIST table.", | ||
"eStr": "Missing required element \"FG_NHG\" in \"FG_NHG_PREFIX_LIST\". " | ||
}, | ||
"FG_NHG_MEMBER_TEST_MISSING_BANK": { | ||
"desc": "Fine-grained ECMP next-hop member configuration with missing bank in FG_NHG_MEMBER_LIST table.", | ||
"eStr": "Missing required element \"bank\"" | ||
}, | ||
"FG_NHG_PREFIX_TEST_DUPLICATE_ENTRY": { | ||
"desc": "Fine-grained ECMP prefix configuration with duplicate entry in FG_NHG_PREFIX_LIST table.", | ||
"eStr": "Duplicated instance of \"FG_NHG_PREFIX_LIST\" list." | ||
}, | ||
"FG_NHG_MEMBER_TEST_DUPLICATE_MEMBER": { | ||
"desc": "Fine-grained ECMP next-hop member configuration with duplicate member in FG_NHG_MEMBER_LIST table.", | ||
"eStr": "Duplicated instance of \"FG_NHG_MEMBER_LIST\" list." | ||
} | ||
} |
Oops, something went wrong.