...
Note: same response for depth=2
JSON Viewer | ||||
---|---|---|---|---|
| ||||
{} |
http://localhost:8282/restsrestsdata/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine/transition-function?depth=23
JSON Viewer | ||||
---|---|---|---|---|
| ||||
{ "transition-function": { "delta": [ {}, {}, {}, {}, {}, {}, {} ] } } |
http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine/transition-function?depth=34
JSON Viewer | ||||
---|---|---|---|---|
| ||||
{ "transition-function": { "delta": [ { "label": "separator" }, { "label": "write separator" }, { "label": "right summand" }, { "label": "final step" }, { "label": "go home" }, { "label": "right end" }, { "label": "left summand" } ] } } |
http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine/transition-function?depth=45
JSON Viewer | ||||
---|---|---|---|---|
| ||||
{ "transition-function": { "delta": [ { "label": "separator", "input": { "state": 0, "symbol": "0" }, "output": { "state": 1, "symbol": "1" } }, { "label": "write separator", "input": { "state": 2, "symbol": "1" }, "output": { "state": 3, "symbol": "0", "head-move": "left" } }, { "label": "right summand", "input": { "state": 1, "symbol": "1" } }, { "label": "final step", "input": { "state": 3, "symbol": "" }, "output": { "state": 4 } }, { "label": "go home", "input": { "state": 3, "symbol": "1" }, "output": { "head-move": "left" } }, { "label": "right end", "input": { "state": 1, "symbol": "" }, "output": { "state": 2, "head-move": "left" } }, { "label": "left summand", "input": { "state": 0, "symbol": "1" } } ] } } |
...
Interaction Between Fields & Depth Parameters
...
Note: Depth can be any value .> 0. However, all details above field in question will be added to output
http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine/transition-function?fields=delta/output/state&depth=1Note: Depth can be any value .> 0. However, all details above field in question will be added to output
JSON Viewer | ||||
---|---|---|---|---|
| ||||
{ "transition-function": { "delta": [ { "output": { "state": 1 } }, { "output": { "state": 3 } }, {}, { "output": { "state": 4 } }, {}, { "output": { "state": 2 } }, {} ] } } |
...
JSON Viewer | ||||
---|---|---|---|---|
| ||||
{ "turing-machine": { "transition-function": { "delta": [ { "output": { "state": 1 } }, { "output": { "state": 3 } }, {}, { "output": { "state": 4 } }, {}, { "output": { "state": 2 } }, {} ] } } } |
Finding from Demo
...
Questions
...
Question | Answer |
---|---|
When field function is used to list attributes in child will the parent still be part of output? | YES |
...