Versions Compared

Key

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

...

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".


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


JSON Viewer
width400
height350
{}


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

JSON Viewer
width400
height350
{
    "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=3


JSON Viewer
width400
height350
{
    "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=4


JSON Viewer
width400
height350
{
    "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"
                }
            }
        ]
    }
}



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

...