-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[yang_models]: Update extension yang and types yang with new yang ext… #6861
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d9efbf2
[yang_models]: Update extension yang and types yang with new yang ext…
maheshwari-mayank 43c8510
[yang_models]:Update revision-date in import statement
maheshwari-mayank 76e9a18
[yang-model]: Removed operations container from types yang.
maheshwari-mayank 5cdfcdf
[yang_models]:Removed revision-date from import statement of sonic-ty…
maheshwari-mayank 90fe5de
{yang_models]: Updated SONiC YANG extensions as per guidelines.
maheshwari-mayank 9f814e3
[yang_models]: Updated extensions and types yang models as per review…
maheshwari-mayank bda2a63
Merge branch 'master' into extension-yang
maheshwari-mayank 7fc7614
[yang_models] Removed extensions key-delim, key-pattern and map-leaf.
maheshwari-mayank 65b59d7
Merge branch 'master' into extension-yang
maheshwari-mayank be95a38
[yang_models] Resolved Conflicts
maheshwari-mayank 22c53a4
[yang_models] Resolved conflicts
maheshwari-mayank 70c1e40
[yang_models] Updated sonic extensions yang.
maheshwari-mayank 66f303e
Merge branch 'master' into extension-yang
maheshwari-mayank 19f5a43
Merge branch 'master' into extension-yang
maheshwari-mayank 23817df
Reverting changes in sonic-acl.yang to merge properly.
maheshwari-mayank 48e0b9c
Merge branch 'master' of https://github.com/Azure/sonic-buildimage in…
maheshwari-mayank d5215c1
Merge branch 'Azure-master' into extension-yang
maheshwari-mayank fc438bd
Removed CVL specific yang extensions.
maheshwari-mayank c04d17b
Added CVL specific extensions to jinja template and moved extension y…
maheshwari-mayank 3c310ab
[YANG] Added CVL specific type and moved sonic-types to j2 template.
maheshwari-mayank 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
41 changes: 41 additions & 0 deletions
41
src/sonic-yang-models/yang-templates/sonic-extension.yang.j2
This file contains hidden or 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,41 @@ | ||
module sonic-extension { | ||
|
||
yang-version 1.1; | ||
|
||
namespace "http://github.com/Azure/sonic-extension"; | ||
prefix sonic-extension; | ||
|
||
description "Extension yang Module for SONiC OS"; | ||
|
||
revision 2019-07-01 { | ||
description "First Revision"; | ||
} | ||
|
||
/* For complete guide of using these extensions in SONiC yangs, refer | ||
SONiC yang guidelines at | ||
https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md */ | ||
|
||
extension db-name { | ||
description "DB name, e.g. APPL_DB, CONFIG_DB"; | ||
argument "value"; | ||
} | ||
|
||
{% if yang_model_type == "cvl" %} | ||
extension custom-validation-cvl { | ||
description "Extension for registering cvl based custom validation handler."; | ||
argument "handler"; | ||
} | ||
|
||
extension dependent-on { | ||
description | ||
"Extension to define dependency on other table. During CREATE/UPDATE, | ||
the action will be performed first on the Parent table and then on the | ||
Dependent table. In DELETE operation, the Dependent table will be | ||
deleted first and then the Parent table. This extension can be defined | ||
only under List nodes. Table name should always be suffixed with '_LIST' | ||
as modeled in yang. e.g. - dependent-on STP_LIST"; | ||
argument "value"; | ||
} | ||
{% else %} | ||
{% endif %} | ||
} |
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.