Loading src/nbi/tests/data/test-ietf-network-huawei.json 0 → 100644 +1944 −0 File added.Preview size limit exceeded, changes collapsed. Show changes src/nbi/tests/data/test-ietf-network.json +129 −97 Original line number Diff line number Diff line Loading @@ -458,26 +458,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -501,26 +505,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -544,26 +552,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -587,26 +599,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -630,26 +646,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -673,26 +693,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -716,26 +740,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -759,26 +787,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading src/nbi/tests/data/topology_dummy.json→src/nbi/tests/data/topology-dummy.json +30 −3 Original line number Diff line number Diff line Loading @@ -6,9 +6,36 @@ ], "topologies": [ {"topology_id": {"topology_uuid": {"uuid": "admin" }, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "admin" }, {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-1"}, {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-2"} { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"} }, "name": "admin" }, { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"} }, "name": "providerId-10-clientId-0-topologyId-1", "device_ids": [ {"device_uuid": {"uuid": "10.0.10.1"}}, {"device_uuid": {"uuid": "10.0.20.1"}}, {"device_uuid": {"uuid": "10.0.30.1"}}, {"device_uuid": {"uuid": "10.0.40.1"}} ] }, { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"} }, "name": "providerId-10-clientId-0-topologyId-2", "device_ids": [ {"device_uuid": {"uuid": "10.0.10.1"}}, {"device_uuid": {"uuid": "10.0.20.1"}}, {"device_uuid": {"uuid": "10.0.30.1"}}, {"device_uuid": {"uuid": "10.0.40.1"}} ] } ], "devices": [ Loading src/nbi/tests/data/topology-real.json +30 −3 Original line number Diff line number Diff line Loading @@ -4,9 +4,36 @@ ], "topologies": [ {"topology_id": {"topology_uuid": {"uuid": "admin" }, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "admin" }, {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-1"}, {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-2"} { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"} }, "name": "admin" }, { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"} }, "name": "providerId-10-clientId-0-topologyId-1", "device_ids": [ {"device_uuid": {"uuid": "10.0.10.1"}}, {"device_uuid": {"uuid": "10.0.20.1"}}, {"device_uuid": {"uuid": "10.0.30.1"}}, {"device_uuid": {"uuid": "10.0.40.1"}} ] }, { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"} }, "name": "providerId-10-clientId-0-topologyId-2", "device_ids": [ {"device_uuid": {"uuid": "10.0.10.1"}}, {"device_uuid": {"uuid": "10.0.20.1"}}, {"device_uuid": {"uuid": "10.0.30.1"}}, {"device_uuid": {"uuid": "10.0.40.1"}} ] } ], "devices": [ Loading Loading
src/nbi/tests/data/test-ietf-network-huawei.json 0 → 100644 +1944 −0 File added.Preview size limit exceeded, changes collapsed. Show changes
src/nbi/tests/data/test-ietf-network.json +129 −97 Original line number Diff line number Diff line Loading @@ -458,26 +458,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -501,26 +505,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -544,26 +552,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -587,26 +599,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -630,26 +646,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -673,26 +693,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -716,26 +740,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading @@ -759,26 +787,30 @@ "te-delay-metric": 1, "max-link-bandwidth": { "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "odu-type": "ietf-layer1-types:ODU0", "number": 80 "ts-number": 80 } ] } } }, "unreserved-bandwidth": [ { "priority": 7, "te-bandwidth": { "ietf-otn-topology:odulist": [ "ietf-otn-topology:otn": { "odulist": [ { "number": 80, "ts-number": 80, "odu-type": "ietf-layer1-types:ODU0" } ] } } } ] } } Loading
src/nbi/tests/data/topology_dummy.json→src/nbi/tests/data/topology-dummy.json +30 −3 Original line number Diff line number Diff line Loading @@ -6,9 +6,36 @@ ], "topologies": [ {"topology_id": {"topology_uuid": {"uuid": "admin" }, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "admin" }, {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-1"}, {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-2"} { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"} }, "name": "admin" }, { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"} }, "name": "providerId-10-clientId-0-topologyId-1", "device_ids": [ {"device_uuid": {"uuid": "10.0.10.1"}}, {"device_uuid": {"uuid": "10.0.20.1"}}, {"device_uuid": {"uuid": "10.0.30.1"}}, {"device_uuid": {"uuid": "10.0.40.1"}} ] }, { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"} }, "name": "providerId-10-clientId-0-topologyId-2", "device_ids": [ {"device_uuid": {"uuid": "10.0.10.1"}}, {"device_uuid": {"uuid": "10.0.20.1"}}, {"device_uuid": {"uuid": "10.0.30.1"}}, {"device_uuid": {"uuid": "10.0.40.1"}} ] } ], "devices": [ Loading
src/nbi/tests/data/topology-real.json +30 −3 Original line number Diff line number Diff line Loading @@ -4,9 +4,36 @@ ], "topologies": [ {"topology_id": {"topology_uuid": {"uuid": "admin" }, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "admin" }, {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-1"}, {"topology_id": {"topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"}, "context_id": {"context_uuid": {"uuid": "admin"}}}, "name": "providerId-10-clientId-0-topologyId-2"} { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "admin"} }, "name": "admin" }, { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-1"} }, "name": "providerId-10-clientId-0-topologyId-1", "device_ids": [ {"device_uuid": {"uuid": "10.0.10.1"}}, {"device_uuid": {"uuid": "10.0.20.1"}}, {"device_uuid": {"uuid": "10.0.30.1"}}, {"device_uuid": {"uuid": "10.0.40.1"}} ] }, { "topology_id": { "context_id": {"context_uuid": {"uuid": "admin"}}, "topology_uuid": {"uuid": "providerId-10-clientId-0-topologyId-2"} }, "name": "providerId-10-clientId-0-topologyId-2", "device_ids": [ {"device_uuid": {"uuid": "10.0.10.1"}}, {"device_uuid": {"uuid": "10.0.20.1"}}, {"device_uuid": {"uuid": "10.0.30.1"}}, {"device_uuid": {"uuid": "10.0.40.1"}} ] } ], "devices": [ Loading