mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 09:28:50 +00:00
topotests: log exabgp by default
Log exabgp by default in /tmp/topotests/<testname>/<peername>/exabgp.log Level is INFO. Note that in case the configuration syntax is invalid, exabgp does not log into the file and exits at startup. You can check a configuration syntax by running: > exabgp <exabgp.cfg> Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
c040637e97
commit
a1b8727ccd
@ -1210,7 +1210,17 @@ class TopoExaBGP(TopoHost):
|
||||
self.run("chmod a+x /etc/exabgp/*.py")
|
||||
self.run("chown -R exabgp:exabgp /etc/exabgp")
|
||||
|
||||
output = self.run(exacmd + " -e /etc/exabgp/exabgp.env /etc/exabgp/exabgp.cfg")
|
||||
log_dir = os.path.join(self.logdir, self.name)
|
||||
self.run("chmod 777 {}".format(log_dir))
|
||||
|
||||
log_file = os.path.join(log_dir, "exabgp.log")
|
||||
|
||||
env_cmd = "env exabgp.log.level=INFO "
|
||||
env_cmd += "exabgp.log.destination={} ".format(log_file)
|
||||
|
||||
output = self.run(
|
||||
env_cmd + exacmd + " -e /etc/exabgp/exabgp.env /etc/exabgp/exabgp.cfg "
|
||||
)
|
||||
if output is None or len(output) == 0:
|
||||
output = "<none>"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user