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:
fumihiko kakuma 2016-11-28 13:21:26 +09:00 committed by FUJITA Tomonori
parent b5d232d560
commit 46409763d4
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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):