X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Ftransportpce_tests%2F1.2.1%2Ftest_end2end.py;h=759712ae7c583b29ae631741f34fe45cbd87a675;hb=e547f6844b7abb6ea16aa5d9cbceaab1e10e7cbe;hp=5f957eff87267b83120ab4725b6a0d85a158cd07;hpb=938fbefcf61e04c00bc409088dc741369fa845d2;p=transportpce.git diff --git a/tests/transportpce_tests/1.2.1/test_end2end.py b/tests/transportpce_tests/1.2.1/test_end2end.py index 5f957eff8..759712ae7 100644 --- a/tests/transportpce_tests/1.2.1/test_end2end.py +++ b/tests/transportpce_tests/1.2.1/test_end2end.py @@ -18,6 +18,7 @@ import shutil import subprocess import time import unittest +import test_utils class TransportPCEFulltesting(unittest.TestCase): @@ -33,70 +34,28 @@ class TransportPCEFulltesting(unittest.TestCase): #START_IGNORE_XTESTING @classmethod - def __start_honeynode1(cls): - executable = ("./honeynode/2.1/honeynode-distribution/target/honeynode-distribution-1.18.01-hc" - "/honeynode-distribution-1.18.01/honeycomb-tpce") - if os.path.isfile(executable): - with open('honeynode1.log', 'w') as outfile: - cls.honeynode_process1 = subprocess.Popen( - [executable, "17830", "sample_configs/openroadm/2.1/oper-XPDRA.xml"], - stdout=outfile) - - @classmethod - def __start_honeynode2(cls): - executable = ("./honeynode/2.1/honeynode-distribution/target/honeynode-distribution-1.18.01-hc" - "/honeynode-distribution-1.18.01/honeycomb-tpce") - if os.path.isfile(executable): - with open('honeynode2.log', 'w') as outfile: - cls.honeynode_process2 = subprocess.Popen( - [executable, "17831", "sample_configs/openroadm/2.1/oper-ROADMA-full.xml"], - stdout=outfile) + def setUpClass(cls): + print ("starting honeynode1...") + cls.honeynode_process1 = test_utils.start_xpdra_honeynode() + time.sleep(20) - @classmethod - def __start_honeynode3(cls): - executable = ("./honeynode/2.1/honeynode-distribution/target/honeynode-distribution-1.18.01-hc" - "/honeynode-distribution-1.18.01/honeycomb-tpce") - if os.path.isfile(executable): - with open('honeynode3.log', 'w') as outfile: - cls.honeynode_process3 = subprocess.Popen( - [executable, "17833", "sample_configs/openroadm/2.1/oper-ROADMC-full.xml"], - stdout=outfile) + print ("starting honeynode2...") + cls.honeynode_process2 = test_utils.start_roadma_full_honeynode() + time.sleep(20) - @classmethod - def __start_honeynode4(cls): - executable = ("./honeynode/2.1/honeynode-distribution/target/honeynode-distribution-1.18.01-hc" - "/honeynode-distribution-1.18.01/honeycomb-tpce") - if os.path.isfile(executable): - with open('honeynode4.log', 'w') as outfile: - cls.honeynode_process4 = subprocess.Popen( - [executable, "17834", "sample_configs/openroadm/2.1/oper-XPDRC.xml"], - stdout=outfile) + print ("starting honeynode3...") + cls.honeynode_process3 = test_utils.start_roadmc_full_honeynode() + time.sleep(20) - @classmethod - def __start_odl(cls): - executable = "../karaf/target/assembly/bin/karaf" - with open('odl.log', 'w') as outfile: - cls.odl_process = subprocess.Popen( - ["bash", executable, "server"], stdout=outfile, - stdin=open(os.devnull)) + print ("starting honeynode4...") + cls.honeynode_process4 = test_utils.start_xpdrc_honeynode() + time.sleep(20) + print ("all honeynodes started") - @classmethod - def setUpClass(cls): - print ("starting honeynode1") - cls.__start_honeynode1() - time.sleep(40) - print ("starting honeynode2") - cls.__start_honeynode2() - time.sleep(40) - print ("starting honeynode3") - cls.__start_honeynode3() - time.sleep(40) - print ("starting honeynode4") - cls.__start_honeynode4() - time.sleep(40) - print ("starting opendaylight") - cls.__start_odl() + print ("starting opendaylight...") + cls.odl_process = test_utils.start_tpce() time.sleep(80) + print ("opendaylight started") @classmethod def tearDownClass(cls): @@ -135,10 +94,10 @@ class TransportPCEFulltesting(unittest.TestCase): # connect netconf devices def test_01_connect_xpdrA(self): url = ("{}/config/network-topology:" - "network-topology/topology/topology-netconf/node/XPDRA" + "network-topology/topology/topology-netconf/node/XPDRA01" .format(self.restconf_baseurl)) data = {"node": [{ - "node-id": "XPDRA", + "node-id": "XPDRA01", "netconf-node-topology:username": "admin", "netconf-node-topology:password": "admin", "netconf-node-topology:host": "127.0.0.1", @@ -154,10 +113,10 @@ class TransportPCEFulltesting(unittest.TestCase): def test_02_connect_xpdrC(self): url = ("{}/config/network-topology:" - "network-topology/topology/topology-netconf/node/XPDRC" + "network-topology/topology/topology-netconf/node/XPDRC01" .format(self.restconf_baseurl)) data = {"node": [{ - "node-id": "XPDRC", + "node-id": "XPDRC01", "netconf-node-topology:username": "admin", "netconf-node-topology:password": "admin", "netconf-node-topology:host": "127.0.0.1", @@ -173,14 +132,14 @@ class TransportPCEFulltesting(unittest.TestCase): def test_03_connect_rdmA(self): url = ("{}/config/network-topology:" - "network-topology/topology/topology-netconf/node/ROADMA" + "network-topology/topology/topology-netconf/node/ROADMA01" .format(self.restconf_baseurl)) data = {"node": [{ - "node-id": "ROADMA", + "node-id": "ROADMA01", "netconf-node-topology:username": "admin", "netconf-node-topology:password": "admin", "netconf-node-topology:host": "127.0.0.1", - "netconf-node-topology:port": "17831", + "netconf-node-topology:port": "17821", "netconf-node-topology:tcp-only": "false", "netconf-node-topology:pass-through": {}}]} headers = {'content-type': 'application/json'} @@ -192,14 +151,14 @@ class TransportPCEFulltesting(unittest.TestCase): def test_04_connect_rdmC(self): url = ("{}/config/network-topology:" - "network-topology/topology/topology-netconf/node/ROADMC" + "network-topology/topology/topology-netconf/node/ROADMC01" .format(self.restconf_baseurl)) data = {"node": [{ - "node-id": "ROADMC", + "node-id": "ROADMC01", "netconf-node-topology:username": "admin", "netconf-node-topology:password": "admin", "netconf-node-topology:host": "127.0.0.1", - "netconf-node-topology:port": "17833", + "netconf-node-topology:port": "17823", "netconf-node-topology:tcp-only": "false", "netconf-node-topology:pass-through": {}}]} headers = {'content-type': 'application/json'} @@ -214,10 +173,10 @@ class TransportPCEFulltesting(unittest.TestCase): data = { "networkutils:input": { "networkutils:links-input": { - "networkutils:xpdr-node": "XPDRA", + "networkutils:xpdr-node": "XPDRA01", "networkutils:xpdr-num": "1", "networkutils:network-num": "1", - "networkutils:rdm-node": "ROADMA", + "networkutils:rdm-node": "ROADMA01", "networkutils:srg-num": "1", "networkutils:termination-point-num": "SRG1-PP1-TXRX" } @@ -237,10 +196,10 @@ class TransportPCEFulltesting(unittest.TestCase): data = { "networkutils:input": { "networkutils:links-input": { - "networkutils:xpdr-node": "XPDRA", + "networkutils:xpdr-node": "XPDRA01", "networkutils:xpdr-num": "1", "networkutils:network-num": "1", - "networkutils:rdm-node": "ROADMA", + "networkutils:rdm-node": "ROADMA01", "networkutils:srg-num": "1", "networkutils:termination-point-num": "SRG1-PP1-TXRX" } @@ -260,10 +219,10 @@ class TransportPCEFulltesting(unittest.TestCase): data = { "networkutils:input": { "networkutils:links-input": { - "networkutils:xpdr-node": "XPDRC", + "networkutils:xpdr-node": "XPDRC01", "networkutils:xpdr-num": "1", "networkutils:network-num": "1", - "networkutils:rdm-node": "ROADMC", + "networkutils:rdm-node": "ROADMC01", "networkutils:srg-num": "1", "networkutils:termination-point-num": "SRG1-PP1-TXRX" } @@ -283,10 +242,10 @@ class TransportPCEFulltesting(unittest.TestCase): data = { "networkutils:input": { "networkutils:links-input": { - "networkutils:xpdr-node": "XPDRC", + "networkutils:xpdr-node": "XPDRC01", "networkutils:xpdr-num": "1", "networkutils:network-num": "1", - "networkutils:rdm-node": "ROADMC", + "networkutils:rdm-node": "ROADMC01", "networkutils:srg-num": "1", "networkutils:termination-point-num": "SRG1-PP1-TXRX" } @@ -304,7 +263,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_09_add_omsAttributes_ROADMA_ROADMC(self): # Config ROADMA-ROADMC oms-attributes url = ("{}/config/ietf-network:networks/network/openroadm-topology/ietf-network-topology:" - "link/ROADMA-DEG1-DEG1-TTP-TXRXtoROADMC-DEG2-DEG2-TTP-TXRX/org-openroadm-network-topology:" + "link/ROADMA01-DEG1-DEG1-TTP-TXRXtoROADMC01-DEG2-DEG2-TTP-TXRX/org-openroadm-network-topology:" "OMS-attributes/span" .format(self.restconf_baseurl)) data = {"span": { @@ -327,7 +286,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_10_add_omsAttributes_ROADMC_ROADMA(self): # Config ROADMC-ROADMA oms-attributes url = ("{}/config/ietf-network:networks/network/openroadm-topology/ietf-network-topology:" - "link/ROADMC-DEG2-DEG2-TTP-TXRXtoROADMA-DEG1-DEG1-TTP-TXRX/org-openroadm-network-topology:" + "link/ROADMC01-DEG2-DEG2-TTP-TXRXtoROADMA01-DEG1-DEG1-TTP-TXRX/org-openroadm-network-topology:" "OMS-attributes/span" .format(self.restconf_baseurl)) data = {"span": { @@ -363,7 +322,7 @@ class TransportPCEFulltesting(unittest.TestCase): "connection-type": "service", "service-a-end": { "service-rate": "100", - "node-id": "XPDRA", + "node-id": "XPDRA01", "service-format": "Ethernet", "clli": "SNJSCAMCJP8", "tx-direction": { @@ -400,7 +359,7 @@ class TransportPCEFulltesting(unittest.TestCase): }, "service-z-end": { "service-rate": "100", - "node-id": "XPDRC", + "node-id": "XPDRC01", "service-format": "Ethernet", "clli": "SNJSCAMCJT4", "tx-direction": { @@ -472,7 +431,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_13_check_xc1_ROADMA(self): url = ("{}/config/network-topology:network-topology/topology/topology-netconf/" - "node/ROADMA/yang-ext:mount/org-openroadm-device:org-openroadm-device/" + "node/ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/" "roadm-connections/SRG1-PP1-TXRX-DEG1-TTP-TXRX-1" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} @@ -496,7 +455,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_14_check_xc1_ROADMC(self): url = ("{}/config/network-topology:network-topology/topology/topology-netconf/" - "node/ROADMC/yang-ext:mount/org-openroadm-device:org-openroadm-device/" + "node/ROADMC01/yang-ext:mount/org-openroadm-device:org-openroadm-device/" "roadm-connections/SRG1-PP1-TXRX-DEG2-TTP-TXRX-1" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} @@ -519,7 +478,7 @@ class TransportPCEFulltesting(unittest.TestCase): time.sleep(5) def test_15_check_topo_XPDRA(self): - url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/XPDRA-XPDR1" + url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/XPDRA01-XPDR1" .format(self.restconf_baseurl)) response = requests.request( "GET", url1, auth=('admin', 'admin')) @@ -537,7 +496,7 @@ class TransportPCEFulltesting(unittest.TestCase): time.sleep(3) def test_16_check_topo_ROADMA_SRG1(self): - url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA-SRG1" + url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA01-SRG1" .format(self.restconf_baseurl)) response = requests.request( "GET", url1, auth=('admin', 'admin')) @@ -555,7 +514,7 @@ class TransportPCEFulltesting(unittest.TestCase): time.sleep(3) def test_17_check_topo_ROADMA_DEG1(self): - url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA-DEG1" + url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA01-DEG1" .format(self.restconf_baseurl)) response = requests.request( "GET", url1, auth=('admin', 'admin')) @@ -578,10 +537,10 @@ class TransportPCEFulltesting(unittest.TestCase): data = { "networkutils:input": { "networkutils:links-input": { - "networkutils:xpdr-node": "XPDRA", + "networkutils:xpdr-node": "XPDRA01", "networkutils:xpdr-num": "1", "networkutils:network-num": "2", - "networkutils:rdm-node": "ROADMA", + "networkutils:rdm-node": "ROADMA01", "networkutils:srg-num": "1", "networkutils:termination-point-num": "SRG1-PP2-TXRX" } @@ -602,10 +561,10 @@ class TransportPCEFulltesting(unittest.TestCase): data = { "networkutils:input": { "networkutils:links-input": { - "networkutils:xpdr-node": "XPDRA", + "networkutils:xpdr-node": "XPDRA01", "networkutils:xpdr-num": "1", "networkutils:network-num": "2", - "networkutils:rdm-node": "ROADMA", + "networkutils:rdm-node": "ROADMA01", "networkutils:srg-num": "1", "networkutils:termination-point-num": "SRG1-PP2-TXRX" } @@ -626,10 +585,10 @@ class TransportPCEFulltesting(unittest.TestCase): data = { "networkutils:input": { "networkutils:links-input": { - "networkutils:xpdr-node": "XPDRC", + "networkutils:xpdr-node": "XPDRC01", "networkutils:xpdr-num": "1", "networkutils:network-num": "2", - "networkutils:rdm-node": "ROADMC", + "networkutils:rdm-node": "ROADMC01", "networkutils:srg-num": "1", "networkutils:termination-point-num": "SRG1-PP2-TXRX" } @@ -650,10 +609,10 @@ class TransportPCEFulltesting(unittest.TestCase): data = { "networkutils:input": { "networkutils:links-input": { - "networkutils:xpdr-node": "XPDRC", + "networkutils:xpdr-node": "XPDRC01", "networkutils:xpdr-num": "1", "networkutils:network-num": "2", - "networkutils:rdm-node": "ROADMC", + "networkutils:rdm-node": "ROADMC01", "networkutils:srg-num": "1", "networkutils:termination-point-num": "SRG1-PP2-TXRX" } @@ -683,7 +642,7 @@ class TransportPCEFulltesting(unittest.TestCase): "connection-type": "service", "service-a-end": { "service-rate": "100", - "node-id": "XPDRA", + "node-id": "XPDRA01", "service-format": "Ethernet", "clli": "SNJSCAMCJP8", "tx-direction": { @@ -720,7 +679,7 @@ class TransportPCEFulltesting(unittest.TestCase): }, "service-z-end": { "service-rate": "100", - "node-id": "XPDRC", + "node-id": "XPDRC01", "service-format": "Ethernet", "clli": "SNJSCAMCJT4", "tx-direction": { @@ -792,7 +751,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_24_check_xc2_ROADMA(self): url = ("{}/config/network-topology:network-topology/topology/topology-netconf/" - "node/ROADMA/yang-ext:mount/org-openroadm-device:org-openroadm-device/" + "node/ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/" "roadm-connections/DEG1-TTP-TXRX-SRG1-PP2-TXRX-2" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} @@ -813,7 +772,7 @@ class TransportPCEFulltesting(unittest.TestCase): res['roadm-connections'][0]['destination']) def test_25_check_topo_XPDRA(self): - url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/XPDRA-XPDR1" + url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/XPDRA01-XPDR1" .format(self.restconf_baseurl)) response = requests.request( "GET", url1, auth=('admin', 'admin')) @@ -832,7 +791,7 @@ class TransportPCEFulltesting(unittest.TestCase): time.sleep(10) def test_26_check_topo_ROADMA_SRG1(self): - url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA-SRG1" + url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA01-SRG1" .format(self.restconf_baseurl)) response = requests.request( "GET", url1, auth=('admin', 'admin')) @@ -858,7 +817,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_27_check_topo_ROADMA_DEG1(self): - url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA-DEG1" + url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA01-DEG1" .format(self.restconf_baseurl)) response = requests.request( "GET", url1, auth=('admin', 'admin')) @@ -896,7 +855,7 @@ class TransportPCEFulltesting(unittest.TestCase): "connection-type": "service", "service-a-end": { "service-rate": "100", - "node-id": "XPDRA", + "node-id": "XPDRA01", "service-format": "Ethernet", "clli": "SNJSCAMCJP8", "tx-direction": { @@ -933,7 +892,7 @@ class TransportPCEFulltesting(unittest.TestCase): }, "service-z-end": { "service-rate": "100", - "node-id": "XPDRC", + "node-id": "XPDRC01", "service-format": "Ethernet", "clli": "SNJSCAMCJT4", "tx-direction": { @@ -1067,7 +1026,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_32_check_no_xc_ROADMA(self): url = ("{}/config/network-topology:network-topology/topology/topology-netconf/" - "node/ROADMA/yang-ext:mount/org-openroadm-device:org-openroadm-device/" + "node/ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/" .format(self.restconf_baseurl)) response = requests.request( "GET", url, auth=('admin', 'admin')) @@ -1077,7 +1036,7 @@ class TransportPCEFulltesting(unittest.TestCase): time.sleep(2) def test_33_check_topo_XPDRA(self): - url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/XPDRA-XPDR1" + url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/XPDRA01-XPDR1" .format(self.restconf_baseurl)) response = requests.request( "GET", url1, auth=('admin', 'admin')) @@ -1094,7 +1053,7 @@ class TransportPCEFulltesting(unittest.TestCase): time.sleep(10) def test_34_check_topo_ROADMA_SRG1(self): - url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA-SRG1" + url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA01-SRG1" .format(self.restconf_baseurl)) response = requests.request( "GET", url1, auth=('admin', 'admin')) @@ -1111,7 +1070,7 @@ class TransportPCEFulltesting(unittest.TestCase): time.sleep(10) def test_35_check_topo_ROADMA_DEG1(self): - url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA-DEG1" + url1 = ("{}/config/ietf-network:networks/network/openroadm-topology/node/ROADMA01-DEG1" .format(self.restconf_baseurl)) response = requests.request( "GET", url1, auth=('admin', 'admin')) @@ -1144,7 +1103,7 @@ class TransportPCEFulltesting(unittest.TestCase): "connection-type": "roadm-line", "service-a-end": { "service-rate": "100", - "node-id": "ROADMA", + "node-id": "ROADMA01", "service-format": "OC", "clli": "SNJSCAMCJP8", "tx-direction": { @@ -1181,7 +1140,7 @@ class TransportPCEFulltesting(unittest.TestCase): }, "service-z-end": { "service-rate": "100", - "node-id": "ROADMC", + "node-id": "ROADMC01", "service-format": "OC", "clli": "SNJSCAMCJT4", "tx-direction": { @@ -1253,7 +1212,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_38_check_xc1_ROADMA(self): url = ("{}/config/network-topology:network-topology/topology/topology-netconf/" - "node/ROADMA/yang-ext:mount/org-openroadm-device:org-openroadm-device/" + "node/ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/" "roadm-connections/SRG1-PP1-TXRX-DEG1-TTP-TXRX-1" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} @@ -1277,7 +1236,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_39_check_xc1_ROADMC(self): url = ("{}/config/network-topology:network-topology/topology/topology-netconf/" - "node/ROADMC/yang-ext:mount/org-openroadm-device:org-openroadm-device/" + "node/ROADMC01/yang-ext:mount/org-openroadm-device:org-openroadm-device/" "roadm-connections/SRG1-PP1-TXRX-DEG2-TTP-TXRX-1" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} @@ -1314,7 +1273,7 @@ class TransportPCEFulltesting(unittest.TestCase): "connection-type": "roadm-line", "service-a-end": { "service-rate": "100", - "node-id": "ROADMA", + "node-id": "ROADMA01", "service-format": "OC", "clli": "SNJSCAMCJP8", "tx-direction": { @@ -1351,7 +1310,7 @@ class TransportPCEFulltesting(unittest.TestCase): }, "service-z-end": { "service-rate": "100", - "node-id": "ROADMC", + "node-id": "ROADMC01", "service-format": "OC", "clli": "SNJSCAMCJT4", "tx-direction": { @@ -1423,7 +1382,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_42_check_xc2_ROADMA(self): url = ("{}/config/network-topology:network-topology/topology/topology-netconf/" - "node/ROADMA/yang-ext:mount/org-openroadm-device:org-openroadm-device/" + "node/ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/" "roadm-connections/SRG1-PP2-TXRX-DEG1-TTP-TXRX-2" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} @@ -1521,7 +1480,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_47_get_no_xc_ROADMA(self): url = ("{}/config/network-topology:network-topology/topology/topology-netconf" - "/node/ROADMA/yang-ext:mount/org-openroadm-device:org-openroadm-device/" + "/node/ROADMA01/yang-ext:mount/org-openroadm-device:org-openroadm-device/" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json', "Accept": "application/json"} @@ -1541,9 +1500,9 @@ class TransportPCEFulltesting(unittest.TestCase): print ("trial number {}".format(i)) print("eth service creation") self.test_11_create_eth_service1() - print ("check xc in ROADMA") + print ("check xc in ROADMA01") self.test_13_check_xc1_ROADMA() - print ("check xc in ROADMC") + print ("check xc in ROADMC01") self.test_14_check_xc1_ROADMC() print ("eth service deletion\n") self.test_30_delete_eth_service1() @@ -1576,9 +1535,9 @@ class TransportPCEFulltesting(unittest.TestCase): print ("trial number {}".format(i)) print("oc service creation") self.test_36_create_oc_service1() - print ("check xc in ROADMA") + print ("check xc in ROADMA01") self.test_38_check_xc1_ROADMA() - print ("check xc in ROADMC") + print ("check xc in ROADMC01") self.test_39_check_xc1_ROADMC() print ("oc service deletion\n") self.test_44_delete_oc_service1() @@ -1586,7 +1545,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_51_disconnect_XPDRA(self): url = ("{}/config/network-topology:" - "network-topology/topology/topology-netconf/node/XPDRA" + "network-topology/topology/topology-netconf/node/XPDRA01" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( @@ -1597,7 +1556,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_52_disconnect_XPDRC(self): url = ("{}/config/network-topology:" - "network-topology/topology/topology-netconf/node/XPDRC" + "network-topology/topology/topology-netconf/node/XPDRC01" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( @@ -1608,7 +1567,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_53_disconnect_ROADMA(self): url = ("{}/config/network-topology:" - "network-topology/topology/topology-netconf/node/ROADMA" + "network-topology/topology/topology-netconf/node/ROADMA01" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request( @@ -1619,7 +1578,7 @@ class TransportPCEFulltesting(unittest.TestCase): def test_54_disconnect_ROADMC(self): url = ("{}/config/network-topology:" - "network-topology/topology/topology-netconf/node/ROADMC" + "network-topology/topology/topology-netconf/node/ROADMC01" .format(self.restconf_baseurl)) headers = {'content-type': 'application/json'} response = requests.request(