summaryrefslogtreecommitdiff
path: root/lib/grammar_sandbox_main.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@nvidia.com>2020-08-20 12:09:53 -0700
committerChirag Shah <chirag@nvidia.com>2020-08-20 14:12:04 -0700
commit390a886277ba3afc6b9371cc13587b9a30ce5bdb (patch)
tree4894f96aac6079993493eb818a159bcebab91052 /lib/grammar_sandbox_main.c
parent6a7fb29c197718b7a8e43e64e641b59d0bb5a751 (diff)
*: record transaction based on control flag
In case of config rollback is enabled, record northbound transaction based on a control flag. The actual frr daemons would set the flag to true via nb_init from frr_init. This will allow test daemon to bypass recording transacation to db. Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'lib/grammar_sandbox_main.c')
-rw-r--r--lib/grammar_sandbox_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/grammar_sandbox_main.c b/lib/grammar_sandbox_main.c
index fbb97d2dd5..2066e4c96d 100644
--- a/lib/grammar_sandbox_main.c
+++ b/lib/grammar_sandbox_main.c
@@ -55,7 +55,7 @@ int main(int argc, char **argv)
vty_init(master, true);
lib_cmd_init();
yang_init(true);
- nb_init(master, NULL, 0);
+ nb_init(master, NULL, 0, false);
vty_stdio(vty_do_exit);