-
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
[yang] add set_owner to feature yang #9075
Conversation
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
/Azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@dgsudharsan, @praveen-li. This PR is for the DPB issue #8993. |
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
Hi Team, When will this change be reviewed? |
@praveen-li, @dgsudharsan can you approve it there are not other comments. |
@praveen-li, @dgsudharsan can you please approve it there are no other comments. |
@lguohan Sir, awaiting your review. |
@praveen-li can you please approve the changes |
@praveen-li Could you please review and approve the same? I have an ongoing project on hold due to this FEATURE yang module. |
@praveen-li Could you please review this PR? |
src/sonic-yang-models/tests/yang_model_tests/tests_config/feature.json
Outdated
Show resolved
Hide resolved
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.
Looks good overall, Plz add a negative test as well. Thanks.
src/sonic-yang-models/tests/yang_model_tests/tests_config/feature.json
Outdated
Show resolved
Hide resolved
Looks like there are some more changes needed in feature YANG. The "always_disabled" is missing for the state but its generated from init_cfg.json. Can you please update in this PR? |
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.
Please add always_disabled in state as requested
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
Added 'always_disabled' to |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
#### Why I did it DPB falls due to missing POLL_INTERVAL in sonic-flex_counter yang model. #### How I did it Added POLL_INTERVAL leaf to ACL container in sonic-flex_counter yang model. #### How to verify it Run the command config interface breakout <interface> <breakout_mode> **NOTE:** To verify this fix, a PR ([add set_owner to feature yang](#9075)) that fix another bug in SONiC should be merged to master.
@arlakshm Can you please sync to the latest to check if pipeline passes? I see pipeline passing in other few other PRs in sonic-buildimage |
build failure need be fixed. |
@qiluo-msft will review and merge once build check passed |
…#9418) Fixes #9326 #### Why I did it When we try execute DPB from CLI we have error: `libyang[0]: Invalid value "False" in "has_global_scope" element. (path: /sonic-feature:sonic-feature/FEATURE/FEATURE_LIST[name='bgp']/has_global_scope)` The reason for this issue is that has_global_scope and other have been stored in redis database with value False or True form capital letter: ``` "FEATURE":{ "bgp":{ "auto_restart":"enabled", "has_global_scope":"False", "has_per_asic_scope":"True", "has_timer":"False", "high_mem_alert":"disabled", "state":"enabled" } ``` But yang model support boolean just in lowercase letters (https://datatracker.ietf.org/doc/html/rfc6020#section-9.5.1). #### How I did it Added boolean to sonic-types as typedef with different literal cases. #### How to verify it Run the command config interface breakout <breakout_mode> **NOTE:** To verify this fix, the following PRs that fix other problems in SONiC must be merged into master: 1) /pull/9075 2) /pull/9276
#### Why I did it DPB falls due to missing POLL_INTERVAL in sonic-flex_counter yang model. #### How I did it Added POLL_INTERVAL leaf to ACL container in sonic-flex_counter yang model. #### How to verify it Run the command config interface breakout <interface> <breakout_mode> **NOTE:** To verify this fix, a PR ([add set_owner to feature yang](#9075)) that fix another bug in SONiC should be merged to master.
#### Why I did it Add the configuration for the set_owner in the `feature` yang model #### How I did it Add new leaf `set_pwner` to the `feature` yang model #### How to verify it compile `sonic_yang_mgmt-1.0-py3-none-any.whl`
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan [email protected]
Why I did it
Add the configuration for the set_owner in the
feature
yang modelHow I did it
Add new leaf
set_pwner
to thefeature
yang modelHow to verify it
compile
sonic_yang_mgmt-1.0-py3-none-any.whl
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)