sonic-buildimage/src/sonic-yang-mgmt
ohu1 459d3d1f55
SONiC QoS MAPs and PORT_QOS_MAP Yang (#7375)
Why I did it
Created SONiC Yang model for the following QOS MAPs and PORT QOS MAP:
DSCP_TO_TC_MAP
DOT1P_TO_TC_MAP
TC_TO_QUEUE_MAP
TC_TO_PRIORITY_GROUP_MAP
MAP_PFC_PRIORITY_TO_QUEUE
PORT_QOS_MAP

How I did it
Defined Yang models for QOS MAPs based on Guideline doc:
https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md
and
https://github.com/Azure/sonic-utilities/blob/master/doc/Command-Reference.md

How to verify it
sonic_yang_models package build
The infra code was modified to handle the nested list definition in YANG and translate it to a flat list in DB.
2021-10-19 12:50:07 -07:00
..
tests [YANG MGMT]: Support Grouping translation in YANG Models. (#8318) 2021-09-30 12:53:34 -07:00
.gitignore Reorganize .gitignore files (#4707) 2020-06-09 21:04:55 -07:00
AUTHORS.rst [sonic-yang-mgmt]: sonic-yang-mgmt package for configuration validation. (#3861) 2020-05-21 16:27:57 -07:00
LICENSE [sonic-yang-mgmt]: sonic-yang-mgmt package for configuration validation. (#3861) 2020-05-21 16:27:57 -07:00
README.rst [sonic-yang-mgmt]: sonic-yang-mgmt package for configuration validation. (#3861) 2020-05-21 16:27:57 -07:00
setup.cfg [sonic-yang-mgmt] Build PY3 & PY2 packages (#5559) 2020-11-07 13:03:41 -08:00
setup.py [YANG MGMT]: Support Grouping translation in YANG Models. (#8318) 2021-09-30 12:53:34 -07:00
sonic_yang_ext.py SONiC QoS MAPs and PORT_QOS_MAP Yang (#7375) 2021-10-19 12:50:07 -07:00
sonic_yang.py [YANG MGMT]: Support Grouping translation in YANG Models. (#8318) 2021-09-30 12:53:34 -07:00

"
This package includes python yang libraries which will be used with sonic utilities
pacakge to validate the config. This python libraries are written on top of libyang
and also provides functionality to translate the config from SONiC ConfigDB to SONiC
YANG and vice-versa.
"