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.
Switchport Modes Port & Port Channel Yang Model Configurations (sonic…
…-net#13580) ### Why I did it - Modified "sonic-port.yang" for adding support in Port Yang model for the "mode" attribute for adding port modes - Modified "sonic-portchannel.yang" for adding support in Port Channel Yang model for the "mode" attribute for adding port modes - Updated tests for these modifications #### How to verify it - Added support to align SONiC yang with Config_db
- Loading branch information
1 parent
e8b1722
commit 88f80fb
Showing
13 changed files
with
276 additions
and
106 deletions.
There are no files selected for viewing
135 changes: 90 additions & 45 deletions
135
src/sonic-yang-models/tests/files/sample_config_db.json
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -24,7 +24,8 @@ | |
"mtu": 9000, | ||
"lanes": "1", | ||
"name": "Ethernet0", | ||
"speed": 25000 | ||
"speed": 25000, | ||
"mode":"trunk" | ||
} | ||
] | ||
} | ||
|
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
Oops, something went wrong.