...
Note: 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 } }, {} ] } } |
Note: field take precedence so adding depth=2 is the same as depth=1
JSON Viewer | ||||
---|---|---|---|---|
| ||||
{ "transition-function": { "delta": [ { "output": { "state": 1 } }, { "output": { "state": 3 } }, {}, { "output": { "state": 4 } }, {}, { "output": { "state": 2 } }, {} ] } } |
Can also work with multiple fields as aboveNote: field take precedence so adding depth=2 is the same as depth=1
JSON Viewer | ||||
---|---|---|---|---|
| ||||
{ "transition-function": { "delta": [ { "output": { "state": 1, "symbol": "1" } }, { "output": { "state": 3, "symbol": "0" } }, {}, { "output": { "state": 4 } }, {}, { "output": { "state": 2 } }, {} ] } } |
...
Fields with module examples
...
...
...
JSON Viewer | ||||
---|---|---|---|---|
| ||||
{
"turing-machine": {
"transition-function": {
"delta": [
{
"output": {
"state": 1
}
},
{
"output": {
"state": 3
}
},
{},
{
"output": {
"state": 4
}
},
{},
{
"output": {
"state": 2
}
},
{}
]
}
}
} |
- We can get the child by using http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine/transition-function/delta=separator
JSON Viewer | ||||
---|---|---|---|---|
| ||||
{ "turing-machine:delta": [ { "label": "separator", "input": { "state": 0, "symbol": "0" }, "output": { "state": 1, "symbol": "1" } } ] } |
...