summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-01-08 14:08:13 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-05-31 16:06:42 +0200
commit2950f5da55af16c8efd1ca24f714e9d69c602503 (patch)
treef0fb34f79c0dc851a405b58fa3df719f752e8368 /tests/lib
parentMerge pull request #4315 from lkrishnamoor/route_map_3rd_state (diff)
downloadfrr-2950f5da55af16c8efd1ca24f714e9d69c602503.tar.xz
frr-2950f5da55af16c8efd1ca24f714e9d69c602503.zip
lib: Add '--command-log-always` to all daemons startup
Add 'no log commands' cli and at the same time add a --command-log-always to the daemon startup cli. If --command-log-always is specified then all commands are auto-logged and the 'no log commands' form of the command is now ignored. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/cli/common_cli.c2
-rw-r--r--tests/lib/northbound/test_oper_data.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/cli/common_cli.c b/tests/lib/cli/common_cli.c
index 393b58874..2071ae08c 100644
--- a/tests/lib/cli/common_cli.c
+++ b/tests/lib/cli/common_cli.c
@@ -82,7 +82,7 @@ int main(int argc, char **argv)
cmd_hostname_set("test");
cmd_domainname_set("test.domain");
- vty_init(master);
+ vty_init(master, false);
memory_init();
yang_init();
nb_init(master, NULL, 0);
diff --git a/tests/lib/northbound/test_oper_data.c b/tests/lib/northbound/test_oper_data.c
index 7cd622854..3180f9f9f 100644
--- a/tests/lib/northbound/test_oper_data.c
+++ b/tests/lib/northbound/test_oper_data.c
@@ -411,7 +411,7 @@ int main(int argc, char **argv)
/* Library inits. */
cmd_init(1);
cmd_hostname_set("test");
- vty_init(master);
+ vty_init(master, false);
memory_init();
yang_init();
nb_init(master, modules, array_size(modules));