module mainmodule{
include module1;
include module2;
}
submodule module1{
list list1{
key 'name';
leaf name {
type string;
}
leaf value1 {
type int32;
}
}
}
submodule module2{
container cont1{
list list1{
key 'name';
leaf name {
type string;
}
leaf value2 {
type int32;
}
}
}
}
yang defintion:
Configuration:
rest GET for the entire configuration returns correct data:
Rest GET by using a specific list key when there is a similar list in another submodule with same key value retrieves that data too