You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GCU] Adding unit-test where path and ref paths are under the same YANG container (sonic-net#2047)
#### What I did
Did a debug session with Ping Mao and found this case is failing in her PR: sonic-net#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)
0 commit comments