Details
-
Improvement
-
Status: Resolved
-
Medium
-
Resolution: Done
-
None
-
None
Description
Title: odl-restconf-nb-rfc8040 fails to return field if subfields specified for another element
The RFC8040 implementation returns an incomplete result if, at the same level, you request subfields from a container.
If we query for the manufactured-thing and structure, we get the following result:
Operation: GET URL: http://\{{lmsdner}}:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=siae_alcplus2e_12969/yang-ext:mount/core-model-1-4:control-construct/equipment=RADIO-2A?content=config&fields=uuid;actual-equipment(manufactured-thing;structure) RESULT: { "core-model-1-4:equipment": [ { "uuid": "RADIO-2A", "actual-equipment": { "manufactured-thing": { "operator-augmented-equipment-instance": { "asset-instance-identifier": "" }, "equipment-type": { "version": "001", "description": "RADIO connected to RADIO-2A", "model-identifier": "ODU MW interface", "part-type-identifier": "GE8705-52", "type-name": "RADIO" }, "operator-augmented-equipment-type": { "asset-type-identifier": "" }, "equipment-instance": { "serial-number": "101821829000120", "manufacture-date": "1970-01-01T00:00:00.0+00:00", "asset-instance-identifier": "" }, "manufacturer-properties": { "manufacturer-name": "SIAE Microelettronica SpA", "manufacturer-identifier": "" } }, "structure": { "category": "core-model-1-4:EQUIPMENT_CATEGORY_STAND_ALONE_UNIT" } } } ] }
However, if we try to filter the content of manufactured-thing to get just the equipment-type, the structure container is no longer returned:
URL: http://\{{lmsdner}}:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=siae_alcplus2e_12969/yang-ext:mount/core-model-1-4:control-construct/equipment=RADIO-2A?content=config&fields=uuid;actual-equipment(manufactured-thing(equipment-type);structure) { "core-model-1-4:equipment": [ { "uuid": "RADIO-2A", "actual-equipment": { "manufactured-thing": { "equipment-type": { "version": "001", "description": "RADIO connected to RADIO-2A", "model-identifier": "ODU MW interface", "part-type-identifier": "GE8705-52", "type-name": "RADIO" } } } } ] }
Attachments
Issue Links
- relates to
-
NETCONF-820 Fail to process RESTCONF fields on the mounted device
-
- Resolved
-
- mentioned in
-
Page Loading...
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 89643,4 | Introduce parent/child relationship in fields query to resolve NETCONF-660 | stable/magnesium | netconf | Status: ABANDONED | 0 | -1 |
| 89870,15 | Introduce parent/child relationship in fields query | master | netconf | Status: ABANDONED | -2 | +1 |
| 99421,7 | Fix incorrect level assignment during fields parsing | master | netconf | Status: MERGED | +2 | +1 |
| 102198,1 | Fix incorrect level assignment during fields parsing | 3.0.x | netconf | Status: MERGED | +2 | +1 |