diff options
author | Chirag Shah <chirag@nvidia.com> | 2020-08-20 21:09:53 +0200 |
---|---|---|
committer | Chirag Shah <chirag@nvidia.com> | 2020-08-20 23:12:04 +0200 |
commit | 390a886277ba3afc6b9371cc13587b9a30ce5bdb (patch) | |
tree | 4894f96aac6079993493eb818a159bcebab91052 /tests/bgpd | |
parent | lib: add yang modules to native module list (diff) | |
download | frr-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.c | 2 |
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); |