-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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-breakout_cfg.yang]: Remove pattern from sonic-breakout_cfg.yang. #6801
Conversation
d2c3d48
to
8497f32
Compare
There is a reference to BREAKOUT_CFG table and yang. Don't you need to update the HLD accordingly? |
@praveen-li |
8497f32
to
cdea210
Compare
Possible breakout modes are controlled by platform.json and are thoroughly checked by the Python code. So we do not need extra layer of checking using Yang model because then we have to maintain it at 2 places. Also breakout CFG table doesn't impact backend. |
/Azure Pipelines/Azure.sonic-buildimage run |
3/11: PR reviewed in YANG subgroup. |
@praveen-li, who to sign off? |
@lguohan I think Xu can review this one, once I resolve the conflicts. |
After some more thought, I think we don't want to treat this table BREAKOUT_CFG very differently. The main problem for this table with Yang models is that the breakout mode is not known for all platforms and hard to maintain. Maybe we can relax that in the Yang model file, and we validate that by the sonic-utilities or other plugins (which was the case already). The yang model here is still good to have at least to validate the sanity of field name etc. This also makes the table to be consistent with other tables. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As requested
@zhenggen-xu : I guess then , it makes sense to go ahead by just removing the pattern in this yang model and we can still keep the yang model file.
|
Yes, let's keep the file, but not maintain the pattern here, the pattern validation is done by platform specific platform.json and library. |
@praveen-li - can you please address review comments and close on open items. |
Changes: -- Remove pattern from sonic-breakout_cfg.yang, it is redundant. -- test changes. Signed-off-by: Praveen Chaudhary <pchaudhary@linkedin.com>
cdea210
to
da7db2d
Compare
/azp run |
Commenter does not have sufficient privileges for PR 6801 in repo Azure/sonic-buildimage |
Signed-off-by: Praveen Chaudhary <pchaudhary@linkedin.com>
a1d4ce4
to
b3b1ac1
Compare
will merge after the test passed |
/apzw run |
@praveen-li will check the build failure. |
/azpw run |
azpw /run |
/apzw run |
Below failures is seen for many other PRs, so I am waiting for it. @wangxin If you know that this failure is known. Thx
|
/apzw run |
@qiluo-msft, Kindly help to rerun tests, seems "/apzw run" not working. Thx a lot in advance for it. |
@praveen-li do you plan to cherry-pick this PR to |
@praveen-li could you please help to have this PR approved and merged? it is needed for 202106 as well. |
@praveen-li It's |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
@zhangyanzhao, there is a label you added recently to this PR - |
…g. (#6801) Changes: -- Remove pattern from sonic-breakout_cfg.yang, it is redundant. -- test changes. Signed-off-by: Praveen Chaudhary <pchaudhary@linkedin.com>
Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
Why I did it
-- Remove pattern from sonic-breakout_cfg.yang, it is redundant.
Breakout Mode is verified in Sonic-utilities using platform.json
How I did it
Remove pattern from sonic-breakout_cfg.yang
.
How to verify it
Built the packages after changing the tests.
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)