-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SAG SONiC Yang #9018
Open
superchild
wants to merge
15
commits into
sonic-net:master
Choose a base branch
from
superchild:sag-dev
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add SAG SONiC Yang #9018
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e147c43
Add SONiC Yang for static anycast gateway
superchild e132699
Fix yang indent format
superchild b739846
Merge branch 'master' into sag-dev
superchild 622c18a
Refine field name for consistency
superchild 215e938
Merge branch 'master' into sag-dev
superchild 39f1d6a
Merge branch 'master' into sag-dev
superchild 82b6439
Merge branch 'Azure:master' into sag-dev
superchild f2f94a3
Unified indentation to spaces
superchild d102127
Add revision for modified yang model
superchild e7f4ed6
Fix yang-model test failed
superchild 77e7168
Merge branch 'master' into sag-dev
superchild 224f0af
Merge branch 'master' into sag-dev
superchild 800000f
Fix sonic-yang-mgmt test error
superchild 4c62182
Merge branch 'master' into sag-dev
superchild 93c2349
Remove duplicated content and fix indent
superchild File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
9 changes: 9 additions & 0 deletions
9
src/sonic-yang-models/tests/yang_model_tests/tests/static_anycast_gateway.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,9 @@ | ||
{ | ||
"SAG_GLOBAL_MAC_TEST": { | ||
"desc": "Configure a entry in SAG table." | ||
}, | ||
"SAG_GLOBAL_WITH_INVALID_MAC_TEST": { | ||
"desc": "Configure a invalid MAC address format in SAG table.", | ||
"eStrKey" : "Pattern" | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
src/sonic-yang-models/tests/yang_model_tests/tests_config/static_anycast_gateway.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,20 @@ | ||
{ | ||
"SAG_GLOBAL_MAC_TEST": { | ||
"sonic-static-anycast-gateway:sonic-static-anycast-gateway": { | ||
"sonic-static-anycast-gateway:SAG": { | ||
"sonic-static-anycast-gateway:GLOBAL": { | ||
"gateway_mac": "00:11:22:33:44:55" | ||
} | ||
} | ||
} | ||
}, | ||
"SAG_GLOBAL_WITH_INVALID_MAC_TEST": { | ||
"sonic-static-anycast-gateway:sonic-static-anycast-gateway": { | ||
"sonic-static-anycast-gateway:SAG": { | ||
"sonic-static-anycast-gateway:GLOBAL": { | ||
"gateway_mac": "001122334455" | ||
} | ||
} | ||
} | ||
} | ||
} |
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
30 changes: 30 additions & 0 deletions
30
src/sonic-yang-models/yang-models/sonic-static-anycast-gateway.yang
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,30 @@ | ||
module sonic-static-anycast-gateway { | ||
|
||
yang-version 1.1; | ||
|
||
namespace "http://github.com/Azure/sonic-static-anycast-gateway"; | ||
prefix sag; | ||
|
||
import ietf-yang-types { | ||
prefix yang; | ||
} | ||
|
||
description "SAG yang Module for SONiC OS"; | ||
|
||
revision 2021-10-20 { | ||
description | ||
"Initial version"; | ||
} | ||
|
||
container sonic-static-anycast-gateway { | ||
container SAG { | ||
container GLOBAL { | ||
description "Global static anycast gateway configuration"; | ||
|
||
leaf gateway_mac { | ||
type yang:mac-address; | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate SAG entry?