[sonic-yang-models]: First version of yang models for Port, VLan, Interface, PortChannel, loopback and ACL.#3730
Conversation
|
retest this please |
1 similar comment
|
retest this please |
de3c076 to
fa42047
Compare
src/sonic-yang-mgmt/tests/libyang-python-tests/sample-yang-models/sonic-acl.yang
Outdated
Show resolved
Hide resolved
fa42047 to
195e7c0
Compare
3282190 to
7614f1f
Compare
d275630 to
2f3d185
Compare
|
This pull request introduces 2 alerts when merging 2f3d1854003cd3f2eb939f57d80ef4512bc1ab16 into 7bc8f12 - view on LGTM.com new alerts:
|
…erface, PortChannel, lopback and ACL. YANG models as per Guidelines. Guideline doc: https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md [sonic-yang-models/tests]: YANG model test code and JSON input for testing. [sonic-yang-models/setup.py]: Build infra for yang models. Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
…ment. Changes: Find path of dependencies of os environment. Moving test file in separate dir. sonic-slave-jessie/Dockerfile.j2: Remove ijson pkg. Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
2f3d185 to
cbe2046
Compare
|
@renukamanavalan @lguohan Kindly review, approve and merge. Thx a lot. |
Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
|
retest vsimage please |
1 similar comment
|
retest vsimage please |
Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
Changes: 1.) Changing sonic-head to sonic-types. 2.) change prefix from head to stypes. Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
|
Resolved all pending comments. Thx |
|
@renukamanavalan , I notice that test passes with last build. I have removed organization names, also have converted sonic-head to sonic-types. Plz let me know if any other comments. Please note for leaf names, I have used this page: https://github.com/Azure/SONiC/wiki/Configuration. Which suggests ACL_RULE, FLEX_COUNTER_TABLE have all leaves in uppercase. Rest tables have all leaves in lower case, but table name is in uppercase. Thx |
…atically (#22026) #### Why I did it src/sonic-utilities ``` * 6e93f44 - (HEAD -> master, origin/master, origin/HEAD) Add Arista-7060X6-64PE-C224O8, Arista-7060X6-64PE-C256S2 to generic_config_updater (#3804) (18 hours ago) [rick-arista] * 208474c - Add scope to field validator.[redo PR: 3675] (#3805) (2 days ago) [Xincun Li] * a363c7f - [SmartSwitch] Extend reboot script for rebooting SmartSwitch (#3566) (6 days ago) [Vasundhara Volam] * 5e3b132 - [hash] update GH frontend with IPV6_FLOW_LABEL for ECMP/LAG switch hash configuration (#3730) (7 days ago) [Andriy Yurkiv] * 706f97e - [Techsupport] Add show route-map command to frr dumps in techsupport (#3797) (7 days ago) [Sudharsan Dhamal Gopalarathnam] * 1ec0540 - Fix the switch level Voq counter to use switch_id Oid instead of counter name for PACKET_INTEGRITY counter (#3769) (7 days ago) [saksarav-nokia] ``` #### How I did it #### How to verify it #### Description for the changelog
[sonic-yang-models]: First version of yang models for Port, VLan, Interface, PortChannel, loopback and ACL.
YANG models as per Guidelines.
Guideline doc: https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md
[sonic-yang-models/tests]: YANG model test code and JSON input for testing.
[sonic-yang-models/setup.py]: Build infra for yang models.
Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
- What I did
Created Yang model for Sonic.
Tables: PORT, VLAN, VLAN_INTERFACE, VLAN_MEMBER, ACL_RULE, ACL_TABLE, INTERFACE.
Created build infra files using which a new package (sonic-yang-models) can be build and can be deployed on sonic switches. Yang models will be part of this new package.
- How I did it
Wrote yang models based on Guideline doc:
https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md
and
https://github.com/Azure/SONiC/wiki/Configuration.
Wrote python wheel Package infra which runs test for these Yang models using a json files which consists configuration as per yang models. These configs are for negative tests, which means we want to test that most must condition, pattern and when condition works as expected.
- How to verify it
Build Logs and testing:
———————————————————————————————————
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)