diff options
| author | Lou Berger <lberger@labn.net> | 2018-05-11 08:29:42 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-27 20:22:14 -0500 |
| commit | deb4cef09a277a6ca7e730b540742415c338b6e4 (patch) | |
| tree | 5fa99921d9b6e43cfcb41a2c33f4a4113aba8912 | |
| parent | 93701fcf98ba5cde90301b9fee84babec865fe1a (diff) | |
lib: log to start/local (per node) dir, log commands
Signed-off-by: Lou Berger <lberger@labn.net>
| -rw-r--r-- | tests/topotests/lib/topogen.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index d88e4a9890..5c8d1ddf36 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -650,12 +650,13 @@ class TopoRouter(TopoGear): nrouter = self.tgen.net[self.name] 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(): if enabled == 0: continue - self.vtysh_cmd('configure terminal\nlog file {}/{}/{}.log'.format( - self.logdir, self.name, daemon), daemon=daemon) + self.vtysh_cmd('configure terminal\nlog commands\nlog file {}.log'.format( + daemon), daemon=daemon) if result != '': self.tgen.set_error(result) |
