Description
Using Version 6.0.x of yang tools, we are able to parse the attached model 'owb-msa22.zip' with the following data and it gives no error:
{
"openroadm-devices":{
"openroadm-device":[
{
"device-id":"C201-7-1A",
"ne-state":"inservice",
"commission-date-time":"2022-11-06T14:12:23.260487-06:00",
"org-openroadm-device":{
"degree":[
{
"degree-number":1,
"max-wavelengths":128,
"circuit-packs":[
{
"index":1,
"circuit-pack-name":"1/0"
}
],
"connection-ports":[
{
"index":1,
"circuit-pack-name":"2/0/0"
}
]
}
]
},
"status":"success"
}
]
}
The key node 'circuit-pack-name' was augmented via the 'use' statement and has a typeLeafRef and given path.
Upgrading to version 8.0.6, the parser returns with 'Data tree child org-openroadm-device not found in openroadm-device module' when using the same data and model as above. However, using the following data (without the use of circuit pack name) the parser accepts it:
{
"openroadm-devices":{
"openroadm-device":[
{
"device-id":"C201-7-1A",
"ne-state":"inservice",
"commission-date-time":"2022-11-06T14:12:23.260487-06:00",
"org-openroadm-device":{
"degree":[
{
"degree-number":1,
"max-wavelengths":128,
"circuit-packs":[
{
"index":1
}
],
"connection-ports":[
{
"index":1
}
]
}
]
},
"status":"success"
}
]
}
}
Please see the unit test analysis that we have used in our code to show this:
https://gerrit.onap.org/r/c/cps/+/132864
Attachments
Issue Links
- blocks
-
CPS-1433 Loading...