-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
Jakarta Release
-
None
-
None
We are currently using SDNC version 1.8.1 in which we send the following GET request that gives us the expected output as per https://tools.ietf.org/id/draft-ietf-netconf-restconf-07.xml#content, wherein it specifies that through a filter option we can access a leaf:
{ "ietf-netconf-monitoring:netconf-state": { "schemas": { "schema": [ { "identifier": "ietf-tls-server", "version": "2016-11-02", "format": "ietf-netconf-monitoring:yang", "namespace": "urn:ietf:params:xml:ns:yang:ietf-tls-server", "location": [ "NETCONF" }] } } }
*The GET request below specifies to access the leaf 'location'.
curl --location --request GET 'http://{sdncHostIp}:{sdncHostPort}/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/ietf-netconf-monitoring:netconf-state?fields=schemas/schema/location&content=all' \
{ "ietf-netconf-monitoring:netconf-state": { "schemas": { "schema": [{ "location": ["NETCONF"] }] } } }
Upon upgrading to the following SDNC version:
sdnc: image: onap/sdnc-image:2.2.3
We get the following:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Request failed.</title>
</head>
<body><h2>HTTP ERROR 500 Request failed.</h2>
<table>
<tr><th>URI:</th><td>/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/ietf-netconf-monitoring:netconf-state</td></tr>
<tr><th>STATUS:</th><td>500</td></tr>
<tr><th>MESSAGE:</th><td>Request failed.</td></tr>
<tr><th>SERVLET:</th><td>org.glassfish.jersey.servlet.ServletContainer</td></tr>
</table></body>
</html>
However,
SDNCv.2.2.3 gives the following response if we only specify the filter up to container level such as "field=schemas/schema" i.e. a leaf such as 'location' is not included
{ "ietf-netconf-monitoring:netconf-state": { "schemas": { "schema": [ { "identifier": "ietf-tls-server", "version": "2016-11-02", "format": "ietf-netconf-monitoring:yang", "namespace": "urn:ietf:params:xml:ns:yang:ietf-tls-server", "location": [ "NETCONF" ] } ] } } }
- mentioned in
-
Page Loading...