mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 10:37:29 +00:00
lib: log to start/local (per node) dir, log commands
Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
parent
93701fcf98
commit
deb4cef09a
@ -650,12 +650,13 @@ class TopoRouter(TopoGear):
|
|||||||
nrouter = self.tgen.net[self.name]
|
nrouter = self.tgen.net[self.name]
|
||||||
result = nrouter.startRouter(self.tgen)
|
result = nrouter.startRouter(self.tgen)
|
||||||
|
|
||||||
# Enable all daemon logging files and set them to the logdir.
|
# Enable all daemon command logging, logging files
|
||||||
|
# and set them to the start dir.
|
||||||
for daemon, enabled in nrouter.daemons.iteritems():
|
for daemon, enabled in nrouter.daemons.iteritems():
|
||||||
if enabled == 0:
|
if enabled == 0:
|
||||||
continue
|
continue
|
||||||
self.vtysh_cmd('configure terminal\nlog file {}/{}/{}.log'.format(
|
self.vtysh_cmd('configure terminal\nlog commands\nlog file {}.log'.format(
|
||||||
self.logdir, self.name, daemon), daemon=daemon)
|
daemon), daemon=daemon)
|
||||||
|
|
||||||
if result != '':
|
if result != '':
|
||||||
self.tgen.set_error(result)
|
self.tgen.set_error(result)
|
||||||
|
Loading…
Reference in New Issue
Block a user