mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
Get some debug information
Get log for command execution error and ryu bgp app. Signed-off-by: Fumihiko Kakuma <kakuma@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
b5d232d560
commit
46409763d4
@ -132,7 +132,8 @@ class Command(object):
|
||||
LOG.info(out.command)
|
||||
if out.returncode == 0:
|
||||
return out
|
||||
LOG.error(out.stderr)
|
||||
LOG.error("stdout: %s" % out)
|
||||
LOG.error("stderr: %s" % out.stderr)
|
||||
if i + 1 >= try_times:
|
||||
break
|
||||
time.sleep(interval)
|
||||
|
||||
@ -172,6 +172,7 @@ class RyuBGPContainer(base.BGPContainer):
|
||||
else:
|
||||
try_times = 1
|
||||
cmd = "ryu-manager --verbose "
|
||||
cmd += "--config-file %s " % self.SHARED_RYU_CONF
|
||||
cmd += "--bgp-app-config-file %s " % self.SHARED_BGP_CONF
|
||||
cmd += "ryu.services.protocols.bgp.application"
|
||||
for i in range(try_times):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user