mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 21:23:06 +00:00
lib: use shared candidate between vty and mgmtd client
When the daemon is partially mgmtd-converted, it receives configuration from vty and mgmtmd simultaneosly. This configuration must be synchronized. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
dc6ff4c0de
commit
05948a4d98
@ -19,6 +19,7 @@
|
||||
#include "northbound.h"
|
||||
#include "stream.h"
|
||||
#include "sockopt.h"
|
||||
#include "northbound_cli.h"
|
||||
|
||||
#include "lib/mgmt_be_client_clippy.c"
|
||||
|
||||
@ -1068,7 +1069,7 @@ struct mgmt_be_client *mgmt_be_client_create(const char *client_name,
|
||||
|
||||
client->name = XSTRDUP(MTYPE_MGMTD_BE_CLIENT_NAME, client_name);
|
||||
client->running_config = running_config;
|
||||
client->candidate_config = nb_config_new(NULL);
|
||||
client->candidate_config = vty_shared_candidate_config;
|
||||
if (cbs)
|
||||
client->cbs = *cbs;
|
||||
mgmt_be_txns_init(&client->txn_head);
|
||||
@ -1107,7 +1108,6 @@ void mgmt_be_client_destroy(struct mgmt_be_client *client)
|
||||
msg_client_cleanup(&client->client);
|
||||
mgmt_be_cleanup_all_txns(client);
|
||||
mgmt_be_txns_fini(&client->txn_head);
|
||||
nb_config_free(client->candidate_config);
|
||||
|
||||
XFREE(MTYPE_MGMTD_BE_CLIENT_NAME, client->name);
|
||||
XFREE(MTYPE_MGMTD_BE_CLIENT, client);
|
||||
|
Loading…
Reference in New Issue
Block a user