From ef43a6329b063f0fa4acc0c3d9ae3e3875b65da6 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Wed, 8 Mar 2023 17:26:38 -0500 Subject: mgmtd: Add MGMT Frontend Interface Framework This commit introduces the Frontend Interface which can be used by front-end management clients like Netconf server, Restconf Server and CLI to interact with new FRR Management daemon (MGMTd) to access and sometimes modify FRR management data. This commit includes the following functionalities in the changeset: 1. Add new Frontend server for clients connect to. 2. Add a C-based Frontend client library which can be used by Frontend clients to communicate with MGMTd via the Frontend interface. 3. Maintain a frontend adapter for each connection from an appropriate Frontend client to facilitate client requests and track one or more client sessions across it. 4. Define the protobuf message format for messages to be exchanged between MGMTd Frontend module and the Frontend client. 5. This changeset also introduces an instance of MGMT Frontend client embedded within the lib/vty module that can be leveraged by any FRR daemon to connect to MGMTd's Frontend interface. The same has been integrated with and initialized within the MGMTd daemon's process context to implement a bunch of 'set-config', 'commit-apply', 'get-config' and 'get-data' commands via VTYSH Co-authored-by: Pushpasis Sarkar Co-authored-by: Abhinay Ramesh Co-authored-by: Ujwal P Signed-off-by: Yash Ranjan --- mgmtd/subdir.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mgmtd/subdir.am') diff --git a/mgmtd/subdir.am b/mgmtd/subdir.am index 540ee07c3..732d5560b 100644 --- a/mgmtd/subdir.am +++ b/mgmtd/subdir.am @@ -18,6 +18,8 @@ noinst_LIBRARIES += mgmtd/libmgmtd.a mgmtd_libmgmtd_a_SOURCES = \ mgmtd/mgmt.c \ mgmtd/mgmt_ds.c \ + mgmtd/mgmt_fe_server.c \ + mgmtd/mgmt_fe_adapter.c \ mgmtd/mgmt_memory.c \ mgmtd/mgmt_vty.c \ # end @@ -30,6 +32,8 @@ mgmtdheader_HEADERS = \ noinst_HEADERS += \ mgmtd/mgmt.h \ mgmtd/mgmt_ds.h \ + mgmtd/mgmt_fe_server.h \ + mgmtd/mgmt_fe_adapter.h \ mgmtd/mgmt_memory.h \ # end -- cgit v1.2.3