-
Notifications
You must be signed in to change notification settings - Fork 3
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
[sonic-yang-mgmt]: Move yang models to src/sonic-yang-models and build infra changes. #54
Conversation
Can you describe the difference from this PR than the old yang models? Are you just moving the location or you have new changes? please include the removing action in the PR if just move location. If you have other changes, I would prefer to have another on top of it. |
I see commit 2 has same code but different location from old code. Please in this same PR, remove the old code, then add the new code. If any new changes like pip3 support, we should have a separate PR for now so it is easy to review. For upstream, since it is not merged yet, everything can go with one PR if you see fit. |
@praveen-li Can you build an image with this change and load it on the box and try some of the system level functions? |
please resolve the conflicts and include the test results for the image with this PR. |
c78d2f4
to
fe3c020
Compare
…d infra changes. 1.) Move yang models to src/sonic-yang-models. 2.) New build infra for src/sonic-yang-models. 3.) Change in build infra for src/sonic-yang-mgmt. 4.) Makefile changes to make sonic-yang-mgmt depend on sonic-yang-models. 5.) Test files changes.
Signed-off-by: Praveen Chaudhary [email protected]
Signed-off-by: Praveen Chaudhary [email protected]
Signed-off-by: Praveen Chaudhary [email protected]
Signed-off-by: Praveen Chaudhary [email protected]
Signed-off-by: Praveen Chaudhary [email protected]
Signed-off-by: Praveen Chaudhary [email protected]
Changes: -- Reverting back to PY2. -- Keeping package environment varible name to SONIC_YANG_MGMT_PY Signed-off-by: Praveen Chaudhary [email protected]
Test results on sonic image [latest DPB code + this PR]: [Please try to approve and merge fast, I want to raise new PRs on this new location, also I want to keep MSFT PRs similar to this.]. Thx. Testing with sonic image build with sonicYang branch. Check PKGs are installed on sonic image:
Run bbreakout
|
Signed-off-by: Praveen Chaudhary [email protected]
3f43852b8 [sonic_operators.cpp]: Increasing select timeout (zhenggen-xu#55) a1142e251 [sonic_operators.cpp] Update sonic_db_manager::get_counter (zhenggen-xu#56) 1069d2dd4 [sonic_operators.cpp]: Fixbug wait with false positive to return success (zhenggen-xu#54) Signed-off-by: Ze Gan <[email protected]>
[202012][sonic-linkmgrd]Submodule update 8507629 Jing Zhang Mon Apr 4 10:25:22 2022 -0700 Lower unsolicited MUX state change notification log level to WARNING zhenggen-xu#57 17d217d Longxiang Lyu Mon Mar 21 12:15:19 2022 +0800 Enhance clang format (zhenggen-xu#46) c72fa2a Jing Zhang Fri Apr 1 12:23:29 2022 -0700 Disable the feature that decreases link probe interval for measuring switch overhead zhenggen-xu#49 (zhenggen-xu#54) 256b01b Jing Zhang Thu Mar 31 16:20:00 2022 -0700 Update link prober metrics posting logics zhenggen-xu#50 zhenggen-xu#53 dfd48d0 Jing Zhang Wed Mar 23 16:27:45 2022 -0700 Decrease link probing interval after switchover to better determine the overhead of a toggle zhenggen-xu#43 (zhenggen-xu#48) sign-off: Jing Zhang [email protected]
- What I did
[sonic-yang-mgmt]: Move yang models to src/sonic-yang-models and build infra changes.
- 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 must conditions, patterns and when conditions works as expected.
- How to verify it
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 must conditions, patterns and when conditions works as expected.
Build Logs:
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)