summaryrefslogtreecommitdiffstats
path: root/tests/bgpd
diff options
context:
space:
mode:
authorChirag Shah <chirag@nvidia.com>2020-08-20 21:09:53 +0200
committerChirag Shah <chirag@nvidia.com>2020-08-20 23:12:04 +0200
commit390a886277ba3afc6b9371cc13587b9a30ce5bdb (patch)
tree4894f96aac6079993493eb818a159bcebab91052 /tests/bgpd
parentlib: add yang modules to native module list (diff)
downloadfrr-390a886277ba3afc6b9371cc13587b9a30ce5bdb.tar.xz
frr-390a886277ba3afc6b9371cc13587b9a30ce5bdb.zip
*: 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 'tests/bgpd')
-rw-r--r--tests/bgpd/test_peer_attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bgpd/test_peer_attr.c b/tests/bgpd/test_peer_attr.c
index f6a892df4..0979622eb 100644
--- a/tests/bgpd/test_peer_attr.c
+++ b/tests/bgpd/test_peer_attr.c
@@ -1387,7 +1387,7 @@ static void bgp_startup(void)
master = thread_master_create(NULL);
yang_init(true);
- nb_init(master, NULL, 0);
+ nb_init(master, NULL, 0, false);
bgp_master_init(master, BGP_SOCKET_SNDBUF_SIZE);
bgp_option_set(BGP_OPT_NO_LISTEN);
vrf_init(NULL, NULL, NULL, NULL, NULL);