Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

rests Interface Depth Examples


If the "fields" parameter is used to select descendant data nodes, then these nodes and all of their ancestor nodes have a "depth" value of "1".



Note: Depth of 0 will result in a 400 (Bad Request)

http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine/transition-function?depth=0

...

HTML
tidytrue
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<title>Error 400 Bad Request</title>
</head>

<body>
	<h2>HTTP ERROR 400</h2>
	<p>Problem accessing
		/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine/transition-function.
		Reason:
		<pre>    Bad Request</pre>
	</p>
</body>

</html>

If the "fields" parameter is used to select descendant data nodes, then these nodes and all of their ancestor nodes have a "depth" value of "1".

...



The feasibility/cost of NCMP 'translating' a fields-option without module information into a RESTConf compatible fields value. High level user story view of cost.

...