-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix libyang backlinks issue: #9545
base: master
Are you sure you want to change the base?
Conversation
This pull request introduces 1 alert when merging c1c7fb885022cb3f91e9f76c26940c3d8256a381 into 727a946 - view on LGTM.com new alerts:
|
Ping will follow-up with Mohamed and Praveen offline. |
…NG container (#2047) #### What I did Did a debug session with Ping Mao and found this case is failing in her PR: sonic-net/sonic-buildimage#9545 I think it is an interesting case and I added it explicitly to GCU. Adding unit-test where path and ref paths are under the same YANG container [sonic-loopback-interface.yang](https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/yang-models/sonic-loopback-interface.yang) has: ```yang container sonic-loopback-interface { container LOOPBACK_INTERFACE { list LOOPBACK_INTERFACE_LIST { ... leaf name{ type string; } ... list LOOPBACK_INTERFACE_IPPREFIX_LIST { leaf name{ ... type leafref { path "../../LOOPBACK_INTERFACE_LIST/name"; } } ... ``` #### How I did it Unit-test added #### How to verify it unit-test #### Previous command output (if the output of a command-line utility has changed) #### New command output (if the output of a command-line utility has changed)
@li-pingmao can you please resolve conflict so we can move forward with the review? |
Sure, looking into it. |
c1c7fb8
to
3f9c59c
Compare
This pull request introduces 1 alert when merging 3f9c59c1a10e1ccb507add09a2c54c0b80761703 into 55e7a14 - view on LGTM.com new alerts:
|
- remove call of libyang backlinks() call - find data dependencies based on python schema and data tree APIs - Add test of yang model with union of leafrefs
3f9c59c
to
94ac50b
Compare
src/sonic-yang-mgmt/tests/libyang-python-tests/sample-yang-models/test-vlan.yang
Outdated
Show resolved
Hide resolved
/azp run |
You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list. |
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
Seems sonic-utilities unit test is stuck.
|
This PR is failing sonic-utilities test and |
|
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
Ping debugged with Mohamed, still need more investigation on new test cases. |
@li-pingmao can you please join next YANG subgroup meeting and provide an update? Thanks. |
libyang owner proposed a new option and @ganglyu is working on it. |
…NG container (#2047) #### What I did Did a debug session with Ping Mao and found this case is failing in her PR: sonic-net/sonic-buildimage#9545 I think it is an interesting case and I added it explicitly to GCU. Adding unit-test where path and ref paths are under the same YANG container [sonic-loopback-interface.yang](https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/yang-models/sonic-loopback-interface.yang) has: ```yang container sonic-loopback-interface { container LOOPBACK_INTERFACE { list LOOPBACK_INTERFACE_LIST { ... leaf name{ type string; } ... list LOOPBACK_INTERFACE_IPPREFIX_LIST { leaf name{ ... type leafref { path "../../LOOPBACK_INTERFACE_LIST/name"; } } ... ``` #### How I did it Unit-test added #### How to verify it unit-test #### Previous command output (if the output of a command-line utility has changed) #### New command output (if the output of a command-line utility has changed)
Fix libyang backlinks and sonic-yang-mgmt find_data_dependency issues:
1) changes of find_data_dependency():
- remove call to libyang backlinks()
- find data dependencies/backlinks based on schema and data tree python APIs
2) Add test of yang model with union of leafrefs
Why I did it
How I did it
find data dependencies/backlinks based on schema and data tree python APIs
How to verify it
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)