def process_target_lldpd():
cmd = [
"%s" % KernelVirtualMachinePlayer.rkt_bin,
"--local-config=%s" % KernelVirtualMachinePlayer.tests_path,
"run",
KernelVirtualMachinePlayer.ec.lldp_image_url,
"--insecure-options=all",
"--net=host",
"--interactive",
"--set-env=TERM=%s" % os.getenv("TERM", "xterm"),
"--exec",
"/usr/sbin/lldpd",
"--",
"-dd"]
display("PID -> %s\n"
"exec -> %s" % (os.getpid(), " ".join(cmd)))
sys.stdout.flush()
os.execve(cmd[0], cmd, os.environ)
os._exit(2) # Should not happen
评论列表
文章目录