-def start_tpce():
- if "USE_LIGHTY" in os.environ and os.environ['USE_LIGHTY'] == 'True':
- print("starting LIGHTY.IO TransportPCE build...")
- executable = os.path.join(
- os.path.dirname(os.path.realpath(__file__)),
- "..", "..", "..", "lighty", "target", "tpce",
- "clean-start-controller.sh")
- with open('odl.log', 'w') as outfile:
- return subprocess.Popen(
- ["sh", executable], stdout=outfile, stderr=outfile,
- stdin=open(os.devnull))
- else:
- print("starting KARAF TransportPCE build...")
- executable = os.path.join(
- os.path.dirname(os.path.realpath(__file__)),
- "..", "..", "..", "karaf", "target", "assembly", "bin", "karaf")
- with open('odl.log', 'w') as outfile:
- return subprocess.Popen(
- ["sh", executable, "server"], stdout=outfile, stderr=outfile,
- stdin=open(os.devnull))
+def start_lighty():
+ print("starting LIGHTY.IO TransportPCE build...")
+ executable = os.path.join(
+ os.path.dirname(os.path.realpath(__file__)),
+ "..", "..", "..", "lighty", "target", "tpce",
+ "clean-start-controller.sh")
+ with open('odl.log', 'w') as outfile:
+ return subprocess.Popen(
+ ["sh", executable], stdout=outfile, stderr=outfile, stdin=None)