- print("starting honeynode1...")
- cls.honeynode_process1 = test_utils.start_spdra_honeynode()
- time.sleep(30)
-
- print("starting opendaylight...")
- cls.odl_process = test_utils.start_tpce()
- time.sleep(60)
- print("opendaylight started")
+ cls.processes = test_utils.start_tpce()
+ cls.processes = test_utils.start_sims(['spdrav2'])
- for child in psutil.Process(cls.odl_process.pid).children():
- child.send_signal(signal.SIGINT)
- child.wait()
- cls.odl_process.send_signal(signal.SIGINT)
- cls.odl_process.wait()
- for child in psutil.Process(cls.honeynode_process1.pid).children():
- child.send_signal(signal.SIGINT)
- child.wait()
- cls.honeynode_process1.send_signal(signal.SIGINT)
- cls.honeynode_process1.wait()
+ for process in cls.processes:
+ test_utils.shutdown_process(process)
+ print("all processes killed")
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}
'supporting-port': 'CP1-SFP4-P1',
'supporting-circuit-pack-name': 'CP1-SFP4',
'logical-connection-point': 'XPDR1-CLIENT1',
'supporting-port': 'CP1-SFP4-P1',
'supporting-circuit-pack-name': 'CP1-SFP4',
'logical-connection-point': 'XPDR1-CLIENT1',
'''
self.assertDictEqual(input_dict,
extract_a_from_b(input_dict,
'''
self.assertDictEqual(input_dict,
extract_a_from_b(input_dict,
- "supporting-port": "CP1-CFP0-P1",
- "supported-interface-capability": [
- "org-openroadm-port-types:if-OCH-OTU4-ODU4"
- ],
- "port-direction": "bidirectional",
- "port-qual": "xpdr-network",
- "supporting-circuit-pack-name": "CP1-CFP0",
- "xponder-type": "mpdr",
- "supporting-odu4": "XPDR1-NETWORK1-ODU4",
- "lcp-hash-val": "1021db8d2affe7386705c438c67ea21f"
+ "supporting-port": "CP1-CFP0-P1",
+ "supported-interface-capability": [
+ "org-openroadm-port-types:if-OCH-OTU4-ODU4"
+ ],
+ "port-direction": "bidirectional",
+ "port-qual": "xpdr-network",
+ "supporting-circuit-pack-name": "CP1-CFP0",
+ "xponder-type": "mpdr",
+ "supporting-odu4": "XPDR1-NETWORK1-ODU4",
+ "lcp-hash-val": "1021db8d2affe7386705c438c67ea21f"
self.assertDictEqual(input_dict_2,
extract_a_from_b(input_dict_2,
res['interface'][0][
self.assertDictEqual(input_dict_2,
extract_a_from_b(input_dict_2,
res['interface'][0][
'type': 'org-openroadm-interfaces:otnOdu',
'supporting-port': 'CP1-SFP4-P1'}
input_dict_2 = {
'type': 'org-openroadm-interfaces:otnOdu',
'supporting-port': 'CP1-SFP4-P1'}
input_dict_2 = {
- 'odu-function': 'org-openroadm-otn-common-types:ODU-TTP-CTP',
- 'rate': 'org-openroadm-otn-common-types:ODU2e',
- 'monitoring-mode': 'terminated'}
+ 'odu-function': 'org-openroadm-otn-common-types:ODU-TTP-CTP',
+ 'rate': 'org-openroadm-otn-common-types:ODU2e',
+ 'monitoring-mode': 'terminated'}
)
self.assertDictEqual(input_dict_2,
extract_a_from_b(input_dict_2, res['interface'][0][
)
self.assertDictEqual(input_dict_2,
extract_a_from_b(input_dict_2, res['interface'][0][
'type': 'org-openroadm-interfaces:otnOdu',
'supporting-port': 'CP1-CFP0-P1'}
input_dict_2 = {
'type': 'org-openroadm-interfaces:otnOdu',
'supporting-port': 'CP1-CFP0-P1'}
input_dict_2 = {
- 'odu-function': 'org-openroadm-otn-common-types:ODU-CTP',
- 'rate': 'org-openroadm-otn-common-types:ODU2e',
- 'monitoring-mode': 'monitored'}
+ 'odu-function': 'org-openroadm-otn-common-types:ODU-CTP',
+ 'rate': 'org-openroadm-otn-common-types:ODU2e',
+ 'monitoring-mode': 'monitored'}
self.assertDictEqual(input_dict_2,
extract_a_from_b(input_dict_2,
res['interface'][0][
self.assertDictEqual(input_dict_2,
extract_a_from_b(input_dict_2,
res['interface'][0][
))
self.assertDictEqual(input_dict_3,
extract_a_from_b(input_dict_3,
res['interface'][0][
))
self.assertDictEqual(input_dict_3,
extract_a_from_b(input_dict_3,
res['interface'][0][
'''
self.assertDictContainsSubset({'name': 'XPDR1-NETWORK1-ODU2e-service1', 'administrative-state': 'inService',
'''
self.assertDictContainsSubset({'name': 'XPDR1-NETWORK1-ODU2e-service1', 'administrative-state': 'inService',
def test_15_check_ODU2E_connection(self):
url = ("{}/config/network-topology:network-topology/topology/topology-netconf/"
def test_15_check_ODU2E_connection(self):
url = ("{}/config/network-topology:network-topology/topology/topology-netconf/"