-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Adding mmu buffer yang files #7838
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 23 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
b87a2c4
Adding mmu buffer yang files
AmitKaushik7 46a1320
Test files for mmu buffer yang files
AmitKaushik7 145a6cb
Updated yang files(commented sonic-ext and updated Port path
AmitKaushik7 766a097
Updated yang files(Splitted the BUFFER table's name)
AmitKaushik7 c9e6c4d
Updated sonic_config_db.json for BUFFER pool/profile/pg/queue
AmitKaushik7 9bf4c61
Rectified sample_config_db.json
AmitKaushik7 e62fa56
Rectified sample_config_db.json
AmitKaushik7 4661654
Merge branch 'master' into mmubuffer_yang
AmitKaushik7 218178e
Addressed Review comments, added more test cases and ing/egr profile …
AmitKaushik7 dd479ad
Updated sample_config_db.json and buffer profile yang/test files
AmitKaushik7 8736d4a
Updated sample_config_d.json for ing/egr profile list
AmitKaushik7 006097c
Updated sample_config_db.json
AmitKaushik7 1a06575
Updated sample_config_db.json
AmitKaushik7 a9f1c63
Updated sample_config_db.json
AmitKaushik7 db9183b
Reverting the choice/case for sonic-buffer-profile.yang
AmitKaushik7 47656a9
Masked Test case for static_th/dyanmic_th
AmitKaushik7 4e8ac0d
Prefix PORT_INGRESS/EGRESS table with BUFFER_
AmitKaushik7 a517b05
rearranged buffer related yang files in setup file
AmitKaushik7 16e5901
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 bce3287
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 d61dadf
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 de541dd
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 99a2786
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 679066c
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 29fe149
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 5937bf3
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 e78c803
Addressed review concerns
AmitKaushik7 0611e95
Restricted the threshold to static/dynamic using choice
AmitKaushik7 89e145a
Reverting back static/threshold choice change
AmitKaushik7 442ed84
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 787555f
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 5238c89
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 1cc4db4
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 3df9b41
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 f70fcb3
Merge branch 'Azure:master' into mmubuffer_yang
AmitKaushik7 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
17 changes: 17 additions & 0 deletions
17
src/sonic-yang-models/tests/yang_model_tests/tests/buffer_pg.json
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,17 @@ | ||
| { | ||
| "BUFFER_PG_CORRECT_PROFILE_VALUE": { | ||
| "desc": "BUFFER_PG_CORRECT_PROFILE_VALUE no failure" | ||
| }, | ||
| "BUFFER_PG_WRONG_PROFILE_VALUE": { | ||
| "desc": "BUFFER_PG_WRONG_PROFILE_VALUE pattern failure", | ||
| "eStr": "wrong" | ||
| }, | ||
| "BUFFER_PG_WRONG_PG_VALUE": { | ||
| "desc": "BUFFER_PG_WRONG_PG_VALUE pattern failure", | ||
| "eStr": "Invalid Buffer PG number" | ||
| }, | ||
| "BUFFER_PG_WRONG_PORT_VALUE": { | ||
| "desc": "BUFFER_PG_WRONG_PORT_VALUE pattern failure", | ||
| "eStr": "wrong" | ||
| } | ||
| } |
44 changes: 44 additions & 0 deletions
44
src/sonic-yang-models/tests/yang_model_tests/tests/buffer_pool.json
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,44 @@ | ||
| { | ||
| "BUFFER_POOL_CORRECT_TYPE_INGRESS_VALUE": { | ||
| "desc": "BUFFER_POOL_CORRECT_TYPE_INGRESS_VALUE no failure." | ||
| }, | ||
| "BUFFER_POOL_CORRECT_TYPE_EGRESS_VALUE": { | ||
| "desc": "BUFFER_POOL_CORRECT_TYPE_EGRESS_VALUE no failure." | ||
| }, | ||
| "BUFFER_POOL_WRONG_TYPE_VALUE": { | ||
| "desc": "BUFFER_POOL_WRONG_TYPE_VALUE pattern failure.", | ||
| "eStr": "wrong" | ||
| }, | ||
| "BUFFER_POOL_MANDATORY_TYPE_VALUE": { | ||
| "desc": "BUFFER_POOL_MANDATORY_TYPE_VALUE no type.", | ||
| "eStrKey": "Mandatory" | ||
| }, | ||
| "BUFFER_POOL_CORRECT_MODE_STATIC_VALUE": { | ||
| "desc": "BUFFER_POOL_CORRECT_MODE_STATIC_VALUE no failure." | ||
| }, | ||
| "BUFFER_POOL_CORRECT_MODE_DYNAMIC_VALUE": { | ||
| "desc": "BUFFER_POOL_CORRECT_MODE_DYNAMIC_VALUE no failure." | ||
| }, | ||
| "BUFFER_POOL_WRONG_MODE_VALUE": { | ||
| "desc": "BUFFER_POOL_WRONG_MODE_VALUE pattern failure.", | ||
| "eStr": "wrong" | ||
| }, | ||
| "BUFFER_POOL_CORRECT_XOFF_VALUE": { | ||
| "desc": "BUFFER_POOL_CORRECT_XOFF_VALUE no failure." | ||
| }, | ||
| "BUFFER_POOL_WRONG_XOFF_VALUE": { | ||
| "desc": "BUFFER_POOL_WRONG_XOFF_VALUE pattern failure.", | ||
| "eStr": "wrong" | ||
| }, | ||
| "BUFFER_POOL_CORRECT_SIZE_VALUE": { | ||
| "desc": "BUFFER_POOL_CORRECT_SIZE_VALUE no failure." | ||
| }, | ||
| "BUFFER_POOL_WRONG_SIZE_VALUE": { | ||
| "desc": "BUFFER_POOL_WRONG_SIZE_VALUE pattern failure.", | ||
| "eStr": "wrong" | ||
| }, | ||
| "BUFFER_POOL_MANDATORY_SIZE_VALUE": { | ||
| "desc": "BUFFER_POOL_MANDATORY_SIZE_VALUE no size.", | ||
| "eStrKey": "Mandatory" | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
src/sonic-yang-models/tests/yang_model_tests/tests/buffer_port_egress_profile_list.json
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,13 @@ | ||
| { | ||
| "BUFFER_PORT_EGRESS_PROFILE_LIST_CORRECT_PROFILE_VALUE": { | ||
| "desc": "BUFFER_PORT_EGRESS_PROFILE_LIST_CORRECT_PROFILE_VALUE no failure" | ||
| }, | ||
| "BUFFER_PORT_EGRESS_PROFILE_LIST_WRONG_PROFILE_VALUE": { | ||
| "desc": "BUFFER_PORT_EGRESS_PROFILE_LIST_WRONG_PROFILE_VALUE pattern failure", | ||
| "eStr": "wrong" | ||
| }, | ||
| "BUFFER_PORT_EGRESS_PROFILE_LIST_WRONG_PORT_VALUE": { | ||
| "desc": "BUFFER_PORT_EGRESS_PROFILE_LIST_WRONG_PORT_VALUE pattern failure", | ||
| "eStr": "wrong" | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
src/sonic-yang-models/tests/yang_model_tests/tests/buffer_port_ingress_profile_list.json
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,13 @@ | ||
| { | ||
| "BUFFER_PORT_INGRESS_PROFILE_LIST_CORRECT_PROFILE_VALUE": { | ||
| "desc": "BUFFER_PORT_INGRESS_PROFILE_LIST_CORRECT_PROFILE_VALUE no failure" | ||
| }, | ||
| "BUFFER_PORT_INGRESS_PROFILE_LIST_WRONG_PROFILE_VALUE": { | ||
| "desc": "BUFFER_PORT_INGRESS_PROFILE_LIST_WRONG_PROFILE_VALUE pattern failure", | ||
| "eStr": "wrong" | ||
| }, | ||
| "BUFFER_PORT_INGRESS_PROFILE_LIST_WRONG_PORT_VALUE": { | ||
| "desc": "BUFFER_PORT_INGRESS_PROFILE_LIST_WRONG_PORT_VALUE pattern failure", | ||
| "eStr": "wrong" | ||
| } | ||
| } |
58 changes: 58 additions & 0 deletions
58
src/sonic-yang-models/tests/yang_model_tests/tests/buffer_profile.json
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,58 @@ | ||
| { | ||
| "BUFFER_PROFILE_CORRECT_STATIC_THRESHOLD_VALUE": { | ||
| "desc": "BUFFER_PROFILE_CORRECT_STATIC_THRESHOLD_VALUE no failure." | ||
| }, | ||
| "BUFFER_PROFILE_WRONG_STATIC_THRESHOLD_VALUE": { | ||
| "desc": "BUFFER_PROFILE_WRONG_STATIC_THRESHOLD_VALUE pattern failure.", | ||
| "eStr": "-1" | ||
| }, | ||
| "BUFFER_PROFILE_CORRECT_DYNAMIC_THRESHOLD_MIN_VALUE": { | ||
| "desc": "BUFFER_PROFILE_CORRECT_DYNAMIC_THRESHOLD_MIN_VALUE no failure." | ||
| }, | ||
| "BUFFER_PROFILE_CORRECT_DYNAMIC_THRESHOLD_MAX_VALUE": { | ||
| "desc": "BUFFER_PROFILE_CORRECT_DYNAMIC_THRESHOLD_MAX_VALUE no failure." | ||
| }, | ||
| "BUFFER_PROFILE_WRONG_DYNAMIC_THRESHOLD_VALUE1": { | ||
| "desc": "BUFFER_PROFILE_WRONG_DYNAMIC_THRESHOLD_VALUE1 no failure.", | ||
| "eStrKey": "Range" | ||
| }, | ||
| "BUFFER_PROFILE_WRONG_DYNAMIC_THRESHOLD_VALUE2": { | ||
| "desc": "BUFFER_PROFILE_WRONG_DYNAMIC_THRESHOLD_VALUE2 no failure.", | ||
| "eStrKey": "Range" | ||
| }, | ||
| "BUFFER_PROFILE_CORRECT_SIZE_VALUE": { | ||
| "desc": "BUFFER_PROFILE_CORRECT_SIZE_VALUE no failure." | ||
| }, | ||
| "BUFFER_PROFILE_WRONG_SIZE_VALUE": { | ||
| "desc": "BUFFER_PROFILE_WRONG_SIZE_VALUE pattern failure.", | ||
| "eStr": "-1" | ||
| }, | ||
| "BUFFER_PROFILE_MANDATORY_SIZE_VALUE": { | ||
| "desc": "BUFFER_PROFILE_MANDATORY_SIZE_VALUE pattern failure.", | ||
| "eStrKey": "Mandatory" | ||
| }, | ||
| "BUFFER_PROFILE_CORRECT_POOL_VALUE": { | ||
| "desc": "BUFFER_PROFILE_CORRECT_POOL_VALUE no failure." | ||
| }, | ||
| "BUFFER_PROFILE_WRONG_POOL_VALUE": { | ||
| "desc": "BUFFER_PROFILE_WRONG_POOL_VALUE pattern failure.", | ||
| "eStr": "wrong" | ||
| }, | ||
| "BUFFER_PROFILE_MANDATORY_POOL_VALUE": { | ||
| "desc": "BUFFER_PROFILE_MANDATORY_POOL_VALUE pattern failure.", | ||
| "eStrKey": "Mandatory" | ||
| }, | ||
| "BUFFER_PROFILE_CORRECT_XON_OFFSET_VALUE": { | ||
| "desc": "BUFFER_PROFILE_CORRECT_XON_OFFSET_VALUE no failure." | ||
| }, | ||
| "BUFFER_PROFILE_CORRECT_XON_VALUE": { | ||
| "desc": "BUFFER_PROFILE_CORRECT_XON_VALUE no failure." | ||
| }, | ||
| "BUFFER_PROFILE_CORRECT_XOFF_VALUE": { | ||
| "desc": "BUFFER_PROFILE_CORRECT_XOFF_VALUE no failure." | ||
| }, | ||
| "BUFFER_PROFILE_WRONG_XOFF_VALUE": { | ||
| "desc": "BUFFER_PROFILE_WRONG_XOFF_VALUE no failure.", | ||
| "eStr": "-1" | ||
| } | ||
| } |
17 changes: 17 additions & 0 deletions
17
src/sonic-yang-models/tests/yang_model_tests/tests/buffer_queue.json
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,17 @@ | ||
| { | ||
| "BUFFER_QUEUE_CORRECT_PROFILE_VALUE": { | ||
| "desc": "BUFFER_QUEUE_CORRECT_PROFILE_VALUE no failure" | ||
| }, | ||
| "BUFFER_QUEUE_WRONG_PROFILE_VALUE": { | ||
| "desc": "BUFFER_QUEUE_WRONG_PROFILE_VALUE pattern failure", | ||
| "eStr": "wrong" | ||
| }, | ||
| "BUFFER_QUEUE_WRONG_QUEUE_VALUE": { | ||
| "desc": "BUFFER_QUEUE_WRONG_QUEUE_VALUE pattern failure", | ||
| "eStr": "Invalid Q-index" | ||
| }, | ||
| "BUFFER_QUEUE_WRONG_PORT_VALUE": { | ||
| "desc": "BUFFER_QUEUE_WRONG_PORT_VALUE pattern failure", | ||
| "eStr": "wrong" | ||
| } | ||
| } |
Oops, something went wrong.
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.