diff options
Diffstat (limited to 'msasimulator/src/test/resources')
4 files changed, 250 insertions, 0 deletions
diff --git a/msasimulator/src/test/resources/service-create-failure.json b/msasimulator/src/test/resources/service-create-failure.json new file mode 100644 index 0000000..c008a6f --- /dev/null +++ b/msasimulator/src/test/resources/service-create-failure.json @@ -0,0 +1,54 @@ +{ + "common-id": "1234567", + "connection-type": "service", + "service-name": "svc-Customer1-orange-001_MDONS_OTN_MSA", + "sdnc-request-header": { + "request-id": "123456", + "rpc-action": "service-create", + "notification-url": "http://167.254.204.118:8090/receiver/services", + "request-system-id": "SDN-MLC" + }, + "service-a-end": { + "service-rate": 10, + "service-format": "Ethernet", + "clli": "OWB-AEND", + "node-id": "OWBSPDRNE15", + "optic-type": "gray", + "ethernet-encoding": "10GBASE-R", + "mapping-mode": "GFP-F", + "tx-direction": { + "port": { + "port-device-name": "router-1", + "port-name": "R1" + } + }, + "rx-direction": { + "port": { + "port-device-name": "router-1", + "port-name": "R1" + } + } + }, + "service-z-end": { + "service-rate": 10, + "service-format": "Ethernet", + "node-id": "OWBSPDRNE16", + "clli": "OWB-ZEND", + "optic-type": "gray", + "ethernet-encoding": "10GBASE-R", + "mapping-mode": "GFP-F", + "tx-direction": { + "port": { + "port-device-name": "router-2", + "port-name": "R2" + } + }, + "rx-direction": { + "port": { + "port-device-name": "router-2", + "port-name": "R2" + } + } + }, + "service-layer": "otn" +} diff --git a/msasimulator/src/test/resources/service-create-success.json b/msasimulator/src/test/resources/service-create-success.json new file mode 100644 index 0000000..2edae54 --- /dev/null +++ b/msasimulator/src/test/resources/service-create-success.json @@ -0,0 +1,54 @@ +{ + "common-id": "1234567", + "connection-type": "service", + "service-name": "customer", + "sdnc-request-header": { + "request-id": "123456", + "rpc-action": "service-create", + "notification-url": "http://167.254.204.118:8090/receiver/services", + "request-system-id": "SDN-MLC" + }, + "service-a-end": { + "service-rate": 10, + "service-format": "Ethernet", + "clli": "OWB-AEND", + "node-id": "NodeA", + "optic-type": "gray", + "ethernet-encoding": "10GBASE-R", + "mapping-mode": "GFP-F", + "tx-direction": { + "port": { + "port-device-name": "router-1", + "port-name": "R1" + } + }, + "rx-direction": { + "port": { + "port-device-name": "router-1", + "port-name": "R1" + } + } + }, + "service-z-end": { + "service-rate": 10, + "service-format": "Ethernet", + "node-id": "NodeB", + "clli": "OWB-ZEND", + "optic-type": "gray", + "ethernet-encoding": "10GBASE-R", + "mapping-mode": "GFP-F", + "tx-direction": { + "port": { + "port-device-name": "router-2", + "port-name": "R2" + } + }, + "rx-direction": { + "port": { + "port-device-name": "router-2", + "port-name": "R2" + } + } + }, + "service-layer": "otn" +} diff --git a/msasimulator/src/test/resources/service-delete-request.json b/msasimulator/src/test/resources/service-delete-request.json new file mode 100644 index 0000000..06ed4e9 --- /dev/null +++ b/msasimulator/src/test/resources/service-delete-request.json @@ -0,0 +1,12 @@ +{ + "sdnc-request-header": { + "request-id": "123456", + "rpc-action": "service-delete", + "notification-url": "http://167.254.204.118:8090/receiver/services", + "request-system-id": "SDN-MLC" + }, + "service-delete-req-info": { + "tail-retention": "no", + "service-name": "new" + } +} diff --git a/msasimulator/src/test/resources/topology.json b/msasimulator/src/test/resources/topology.json new file mode 100644 index 0000000..7519d93 --- /dev/null +++ b/msasimulator/src/test/resources/topology.json @@ -0,0 +1,130 @@ +{ + "network-id": "otn-topology", + "ietf-network-topology:link": [ + { + "link-id": "NodeA-XPDR1#XPDR1-NETWORK1##NodeB-XPDR1#XPDR1-NETWORK2", + "org-openroadm-network-topology:administrative-state": "outOfService", + "org-openroadm-otn-network-topology:link-type": "OTN-LINK", + "destination": { + "dest-node": "NodeB-XPDR1", + "dest-tp": "XPDR1-NETWORK2" + }, + "source": { + "source-node": "NodeA-XPDR1", + "source-tp": "XPDR1-NETWORK1" + } + } + ], + "supporting-network": [ + { + "network-ref": "openroadm-topology" + } + ], + "network-types": {}, + "node": [ + { + "supporting-node": [ + { + "network-ref": "openroadm-topology", + "node-ref": "NodeA-XPDR1" + } + ], + "node-id": "NodeA-XPDR1", + "ietf-network-topology:termination-point": [ + { + "org-openroadm-otn-network-topology:tp-type": "XPONDER-CLIENT", + "org-openroadm-otn-network-topology:eqpt-srg-id": 1, + "tp-id": "XPDR1-CLIENT1", + "supporting-termination-point": [ + { + "network-ref": "openroadm-topology", + "tp-ref": "XPDR1-CLIENT1", + "node-ref": "NodeA-XPDR1" + } + ] + }, + { + "org-openroadm-otn-network-topology:tp-type": "XPONDER-CLIENT", + "org-openroadm-otn-network-topology:eqpt-srg-id": 1, + "tp-id": "XPDR1-CLIENT2", + "supporting-termination-point": [ + { + "network-ref": "openroadm-topology", + "tp-ref": "XPDR1-CLIENT2", + "node-ref": "NodeA-XPDR1" + }, + { + "org-openroadm-otn-network-topology:tp-type": "XPONDER-NETWORK", + "org-openroadm-otn-network-topology:eqpt-srg-id": 1, + "tp-id": "XPDR1-NETWORK1", + "supporting-termination-point": [ + { + "network-ref": "openroadm-topology", + "tp-ref": "XPDR1-NETWORK1", + "node-ref": "NodeA-XPDR1" + } + ] + } + ] + } + ], + "org-openroadm-network:node-status": "PLANNED", + "org-openroadm-otn-network-topology:node-type": "SWITCH", + "org-openroadm-otn-network-topology:xpdr-attributes": { + "xpdr-number": 1 + } + }, + { + "supporting-node": [ + { + "network-ref": "openroadm-topology", + "node-ref": "NodeB-XPDR1" + } + ], + "node-id": "NodeB-XPDR1", + "ietf-network-topology:termination-point": [ + { + "org-openroadm-otn-network-topology:tp-type": "XPONDER-CLIENT", + "org-openroadm-otn-network-topology:eqpt-srg-id": 1, + "tp-id": "XPDR1-CLIENT1", + "supporting-termination-point": [ + { + "network-ref": "openroadm-topology", + "tp-ref": "XPDR1-CLIENT1", + "node-ref": "NodeA-XPDR1" + } + ] + }, + { + "org-openroadm-otn-network-topology:tp-type": "XPONDER-CLIENT", + "org-openroadm-otn-network-topology:eqpt-srg-id": 1, + "tp-id": "XPDR1-CLIENT2", + "supporting-termination-point": [ + { + "network-ref": "openroadm-topology", + "tp-ref": "XPDR1-CLIENT2", + "node-ref": "NodeA-XPDR1" + }, + { + "org-openroadm-otn-network-topology:tp-type": "XPONDER-NETWORK", + "org-openroadm-otn-network-topology:eqpt-srg-id": 1, + "tp-id": "XPDR1-NETWORK1", + "supporting-termination-point": [ + { + "network-ref": "openroadm-topology", + "tp-ref": "XPDR1-NETWORK1", + "node-ref": "NodeA-XPDR1" + } + ] + } + ] + } + ], + "org-openroadm-network:node-status": "PLANNED", + "org-openroadm-otn-network-topology:node-type": "SWITCH", + "org-openroadm-otn-network-topology:xpdr-attributes": { + "xpdr-number": 1 + } + } + ] +} |