summaryrefslogtreecommitdiffstats
path: root/lib/northbound_confd.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-02-28 16:00:19 +0100
committerChristian Hopps <chopps@labn.net>2023-03-22 03:08:32 +0100
commit7d65b7b7f441ddb2e730d4274023c0d3d2907c6b (patch)
treea1a7106459429fb936a493cba746aff105d3ce06 /lib/northbound_confd.c
parentmgmtd: Add MGMT Frontend Interface Framework (diff)
downloadfrr-7d65b7b7f441ddb2e730d4274023c0d3d2907c6b.tar.xz
frr-7d65b7b7f441ddb2e730d4274023c0d3d2907c6b.zip
mgmtd: Add MGMT Backend Interface Framework
This commit introduces the MGMT Backend Interface which can be used by back-end management client daemons like BGPd, Staticd, Zebra to connect with new FRR Management daemon (MGMTd) and utilize the new FRR Management Framework to let any Frontend clients to retrieve any operational data or manipulate any configuration data owned by the individual Backend daemon component. This commit includes the following functionalities in the changeset: 1. Add new Backend server for Backend daemons connect to. 2. Add a C-based Backend client library which can be used by daemons to communicate with MGMTd via the Backend interface. 3. Maintain a backend adapter for each connection from an appropriate Backend client to facilitate client requests and track one or more transactions initiated from Frontend client sessions that involves the backend client component. 4. Add the following commands to inspect various Backend client related information a. show mgmt backend-adapter all b. show mgmt backend-yang-xpath-registry c. show mgmt yang-xpath-subscription Co-authored-by: Pushpasis Sarkar <pushpasis@gmail.com> Co-authored-by: Abhinay Ramesh <rabhinay@vmware.com> Co-authored-by: Ujwal P <ujwalp@vmware.com> Signed-off-by: Yash Ranjan <ranjany@vmware.com>
Diffstat (limited to 'lib/northbound_confd.c')
-rw-r--r--lib/northbound_confd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/northbound_confd.c b/lib/northbound_confd.c
index 2b57ff270..ee1956851 100644
--- a/lib/northbound_confd.c
+++ b/lib/northbound_confd.c
@@ -312,7 +312,8 @@ static void frr_confd_cdb_read_cb_prepare(int fd, int *subp, int reslen)
transaction = NULL;
context.client = NB_CLIENT_CONFD;
ret = nb_candidate_commit_prepare(context, candidate, NULL,
- &transaction, errmsg, sizeof(errmsg));
+ &transaction, false, false, errmsg,
+ sizeof(errmsg));
if (ret != NB_OK && ret != NB_ERR_NO_CHANGES) {
enum confd_errcode errcode;