Skip to content
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

yang models for device_metadata, device_neighbor, flex_counters, crm, versions. Processing code and tests. #87

Merged
merged 9 commits into from
Jul 15, 2020

Conversation

praveen-li
Copy link
Collaborator

- What I did
yang models for device_metadata, device_neighbor, flex_counters, crm, versions. Processing code and tests.

- How I did it
Support container(s), list(s) and leaves inside a container.

- How to verify it
Added 2 new tests in sonic_yang_models and 1 new test in sonic_yang_mgmt.

116 INFO:YANG-TEST:
117 ------------------- Test 13: CRM BREAKOUT CFG FLEX COUNTER TABLE.---------------------
118 INFO:YANG-TEST:CRM BREAKOUT CFG FLEX COUNTER TABLE. Passed

134 INFO:YANG-TEST:
135 ------------------- Test 17: DEVICE_METADATA DEVICE_NEIGHBOR VERSION TABLE.---------------------
136 INFO:YANG-TEST:DEVICE_METADATA DEVICE_NEIGHBOR VERSION TABLE. Passed

pchaudha@server05:/home/pchaudha/srcCode/dpb_repo$ ls -l target/python-wheels/sonic_yang_models-1.0-py3-none-any.whl
-rw-r--r-- 1 pchaudha pchaudha 18591 Jul 14 10:41 target/python-wheels/sonic_yang_models-1.0-py3-none-any.whl
pchaudha@server05:/home/pchaudha/srcCode/dpb_repo$ date
Tue Jul 14 10:43:04 PDT 2020

pchaudha@server05:/home/pchaudha/srcCode/dpb_repo$ ls -l target/python-wheels/sonic_yang_mgmt-1.0-py2-none-any.whl
-rw-r--r-- 1 pchaudha pchaudha 19963 Jul 14 11:09 target/python-wheels/sonic_yang_mgmt-1.0-py2-none-any.whl
S
pchaudha@server05:/home/pchaudha/srcCode/dpb_repo$ ls -l target/python-debs/python-sonic-utilities_1.2-1_all.deb
-rw-r--r-- 1 pchaudha pchaudha 153222 Jul 14 11:11 target/python-debs/python-sonic-utilities_1.2-1_all.deb

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Praveen Chaudhary added 8 commits July 13, 2020 22:43
Changes:
1.) Changing sonic-head to sonic-types.
2.) change prefix from head to stypes.
Signed-off-by: Praveen Chaudhary [email protected]

 Conflicts:
	src/sonic-yang-models/yang-models/sonic-acl.yang
	src/sonic-yang-models/yang-models/sonic-extension.yang
	src/sonic-yang-models/yang-models/sonic-types.yang
…_counters, crm, versions.

Changes:
1.) yang models for device_metadata, device_neighbor, flex_counters, crm, versions.
Signed-off-by: Praveen Chaudhary [email protected]:
…d VERSION Yang Models.

Signed-off-by: Praveen Chaudhary [email protected]
Changes:
Support container(s), list(s) and leaves inside a container.

Signed-off-by: Praveen Chaudhary [email protected]
…all tables in input.

Signed-off-by: Praveen Chaudhary [email protected]
@praveen-li praveen-li merged commit ee2c16b into zhenggen-xu:sonic-cfg-mgmt Jul 15, 2020
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request Sep 15, 2020
[ledd][multi-ASIC] Update to ledd based on sonic-swss-common updates (zhenggen-xu#87)
remove sonic-utilities dependency from pcied (zhenggen-xu#88)
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request May 28, 2021
… versions. Processing code and tests. (zhenggen-xu#87)

* [sonic-yang-models/yang-models]: Changing sonic-head to sonic-types.

Changes:
1.) Changing sonic-head to sonic-types.
2.) change prefix from head to stypes.
Signed-off-by: Praveen Chaudhary [email protected]

 Conflicts:
	src/sonic-yang-models/yang-models/sonic-acl.yang
	src/sonic-yang-models/yang-models/sonic-extension.yang
	src/sonic-yang-models/yang-models/sonic-types.yang

* [yang_models]: yang models for device_metadata, device_neighbor, flex_counters, crm, versions.

Changes:
1.) yang models for device_metadata, device_neighbor, flex_counters, crm, versions.
Signed-off-by: Praveen Chaudhary [email protected]:

* [sonic_yang_models]: Includes files in setup.py and fix pyang warnings.

Signed-off-by: Praveen Chaudhary [email protected]

* [sonic-yang-models/yang-models/sonic-versions.yang]: Version Pattern Correction.

Signed-off-by: Praveen Chaudhary [email protected]

* [yangTest.json]: Tests for CRM, BRK CFG, FLEX, DEV_META, DEV_NEIGH and VERSION Yang Models.

Signed-off-by: Praveen Chaudhary [email protected]

* [_sonic_yang_ext.py]: Process container and leaves in container.

Changes:
Support container(s), list(s) and leaves inside a container.

Signed-off-by: Praveen Chaudhary [email protected]

* [test_sonic_yang.py]: Update test to make sure yang models exist for all tables in input.

Signed-off-by: Praveen Chaudhary [email protected]

* [sonic_yang_ext.py]: Minor change because of sonic-head.yang->sonic-types.yang

Signed-off-by: Praveen Chaudhary [email protected]

* [sonic_yang_ext.py]: Minor changes in comments.

Signed-off-by: Praveen Chaudhary [email protected]

RB=2190644
G=lnos-reviewers
R=pchaudhary,pmao,samaity,zxu
A=pchaudhary
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request Aug 9, 2022
e56e9b4 Fix CVE-2021-3121 warning (sonic-net#96)
bf1be4f [ci]: Support code diff coverage threshold 50% (zhenggen-xu#94)
64e516c Ported Marvell armhf build on x86 for debian buster to use cross-compilation instead of qemu emulation (zhenggen-xu#80)
e426388 [ci]: Support azp code coverage (zhenggen-xu#87)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants