4 def start_xpdra_honeynode():
5 executable = ("./honeynode/2.2.1/honeynode-distribution/target/honeynode-distribution-1.18.01-hc"
6 "/honeynode-distribution-1.18.01/honeycomb-tpce")
7 if os.path.isfile(executable):
8 with open('honeynode1.log', 'w') as outfile:
9 return subprocess.Popen(
10 [executable, "17840", "sample_configs/openroadm/2.2.1/oper-XPDRA.xml"],
13 def start_roadma_honeynode():
14 executable = ("./honeynode/2.2.1/honeynode-distribution/target/honeynode-distribution-1.18.01-hc"
15 "/honeynode-distribution-1.18.01/honeycomb-tpce")
16 if os.path.isfile(executable):
17 with open('honeynode2.log', 'w') as outfile:
18 return subprocess.Popen(
19 [executable, "17841", "sample_configs/openroadm/2.2.1/oper-ROADMA.xml"],
22 def start_roadmb_honeynode():
23 executable = ("./honeynode/2.2.1/honeynode-distribution/target/honeynode-distribution-1.18.01-hc"
24 "/honeynode-distribution-1.18.01/honeycomb-tpce")
25 if os.path.isfile(executable):
26 with open('honeynode5.log', 'w') as outfile:
27 return subprocess.Popen(
28 [executable, "17842", "sample_configs/openroadm/2.2.1/oper-ROADMB.xml"],
31 def start_roadmc_honeynode():
32 executable = ("./honeynode/2.2.1/honeynode-distribution/target/honeynode-distribution-1.18.01-hc"
33 "/honeynode-distribution-1.18.01/honeycomb-tpce")
34 if os.path.isfile(executable):
35 with open('honeynode3.log', 'w') as outfile:
36 return subprocess.Popen(
37 [executable, "17843", "sample_configs/openroadm/2.2.1/oper-ROADMC.xml"],
40 def start_xpdrc_honeynode():
41 executable = ("./honeynode/2.2.1/honeynode-distribution/target/honeynode-distribution-1.18.01-hc"
42 "/honeynode-distribution-1.18.01/honeycomb-tpce")
43 if os.path.isfile(executable):
44 with open('honeynode4.log', 'w') as outfile:
45 return subprocess.Popen(
46 [executable, "17844", "sample_configs/openroadm/2.2.1/oper-XPDRC.xml"],
50 if "USE_LIGHTY" in os.environ and os.environ['USE_LIGHTY'] == 'True':
51 print ("starting LIGHTY.IO TransportPCE build...")
52 executable = "../lighty/target/lighty-transportpce-12.0.0-SNAPSHOT/clean-start-controller.sh"
53 with open('odl.log', 'w') as outfile:
54 return subprocess.Popen(
55 ["bash", executable], stdout=outfile,
56 stdin=open(os.devnull))
58 print ("starting KARAF TransportPCE build...")
59 executable = "../karaf/target/assembly/bin/karaf"
60 with open('odl.log', 'w') as outfile:
61 return subprocess.Popen(
62 ["bash", executable, "server"], stdout=outfile,
63 stdin=open(os.devnull))