-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Yang model] SONiC QOS Scheduler, WRED, Queue Yangs (#7281)
- Loading branch information
1 parent
5356244
commit a99d78d
Showing
7 changed files
with
1,028 additions
and
1 deletion.
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
85 changes: 85 additions & 0 deletions
85
src/sonic-yang-models/tests/yang_model_tests/tests/qos.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,85 @@ | ||
{ | ||
"SCHEDULER_VALID": { | ||
"desc": "Configure SCHEDULER table." | ||
}, | ||
|
||
"SCHEDULER_UNDEFINED_TYPE": { | ||
"desc": "Configure undefined type in SCHEDULER table.", | ||
"eStrKey" : "InvalidValue", | ||
"eStr": ["type"] | ||
}, | ||
|
||
"SCHEDULER_INVALID_WEIGHT": { | ||
"desc": "Configure outof range weight in SCHEDULER table.", | ||
"eStrKey" : "Pattern" | ||
}, | ||
|
||
"SCHEDULER_INVALID_METER_TYPE": { | ||
"desc": "Configure unsuported meter type in SCHEDULER table.", | ||
"eStrKey": "InvalidValue", | ||
"eStr": ["meter_type"] | ||
}, | ||
|
||
"SCHEDULER_CBS_NO_CIR": { | ||
"desc": "Configure CBS without CIR.", | ||
"eStr": ["cbs can't be configured without cir"] | ||
}, | ||
|
||
"SCHEDULER_PIR_NO_CIR": { | ||
"desc": "Configure PIR without CIR.", | ||
"eStr": ["pir can't be configured without cir"] | ||
}, | ||
|
||
"SCHEDULER_PIR_VS_CIR": { | ||
"desc": "Configure PIR vs CIR.", | ||
"eStr": ["pir must be greater than or equal to cir"] | ||
}, | ||
|
||
"WRED_PROFILE_EMPTY": { | ||
"desc": "Configure Empty WRED profile." | ||
}, | ||
|
||
"WRED_PROFILE_VALID": { | ||
"desc": "Configure WRED profile." | ||
}, | ||
|
||
"WRED_PROFILE_INVALID_DROP_PROBABILITY": { | ||
"desc": "Configure invalid drop probability in WRED profile.", | ||
"eStrKey" : "Pattern" | ||
}, | ||
|
||
"WRED_PROFILE_INVALID_GREEN_THRESHOLD": { | ||
"desc": "Configure green maximum threshold less than min threshold in WRED profile.", | ||
"eStr": ["Green max threshold must be greater than or equal to min threshold"] | ||
}, | ||
|
||
"WRED_PROFILE_INVALID_YELLOW_THRESHOLD": { | ||
"desc": "Configure yellow maximum threshold less than min threshold in WRED profile.", | ||
"eStr": ["Yellow max threshold must be greater than or equal to min threshold"] | ||
}, | ||
|
||
"WRED_PROFILE_INVALID_RED_THRESHOLD": { | ||
"desc": "Configure red maximum threshold less than min threshold in WRED profile.", | ||
"eStr": ["Red max threshold must be greater than or equal to min threshold"] | ||
}, | ||
|
||
|
||
"QUEUE_VALID": { | ||
"desc": "Attach scheduler and wred profiles to QUEUE." | ||
}, | ||
|
||
"QUEUE_PORT_NOT_EXIST": { | ||
"desc": "Referring non-existing PORT table.", | ||
"eStrKey": "InvalidValue" | ||
}, | ||
|
||
"QUEUE_SCHEDULER_NOT_EXIST": { | ||
"desc": "Referring non-existing SCHEDULER table.", | ||
"eStrKey" : "LeafRef" | ||
}, | ||
|
||
"QUEUE_WRED_NOT_EXIST": { | ||
"desc": "Referring non-existing WRED table.", | ||
"eStrKey" : "LeafRef" | ||
} | ||
} |
Oops, something went wrong.