Conversation
|
This pull request introduces 1 alert when merging c1c7fb885022cb3f91e9f76c26940c3d8256a381 into 727a946 - view on LGTM.com new alerts:
|
src/sonic-yang-mgmt/tests/libyang-python-tests/config_data.json
Outdated
Show resolved
Hide resolved
|
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)
|
this should be closed in favor of #21679 |
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)