diff options
| author | Christian Hopps <chopps@labn.net> | 2023-03-08 17:26:38 -0500 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-03-21 22:08:32 -0400 | 
| commit | ef43a6329b063f0fa4acc0c3d9ae3e3875b65da6 (patch) | |
| tree | 6cb59bf2bd086f0099394da337fa638dbf6b3613 /lib/subdir.am | |
| parent | 1c84efe4fa8585df58a9b53459f94c47934f0786 (diff) | |
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 <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/subdir.am')
| -rw-r--r-- | lib/subdir.am | 21 | 
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/subdir.am b/lib/subdir.am index beef8675aa..eb7cbc4f4f 100644 --- a/lib/subdir.am +++ b/lib/subdir.am @@ -64,6 +64,7 @@ lib_libfrr_la_SOURCES = \  	lib/log_vty.c \  	lib/md5.c \  	lib/memory.c \ +	lib/mgmt_fe_client.c \  	lib/mlag.c \  	lib/module.c \  	lib/mpls.c \ @@ -146,6 +147,23 @@ nodist_lib_libfrr_la_SOURCES = \  	yang/frr-module-translator.yang.c \  	# end +# Add logic to build mgmt.proto +lib_libfrr_la_LIBADD += $(PROTOBUF_C_LIBS) + +BUILT_SOURCES += \ +	lib/mgmt.pb-c.c \ +	lib/mgmt.pb-c.h \ +	# end + +CLEANFILES += \ +	lib/mgmt.pb-c.h \ +	lib/mgmt.pb-c.c \ +	# end + +lib_libfrr_la_SOURCES += \ +	lib/mgmt.pb-c.c \ +	#end +  if SQLITE3  lib_libfrr_la_LIBADD += $(SQLITE3_LIBS)  lib_libfrr_la_SOURCES += lib/db.c @@ -222,6 +240,9 @@ pkginclude_HEADERS += \  	lib/log_vty.h \  	lib/md5.h \  	lib/memory.h \ +	lib/mgmt.pb-c.h \ +	lib/mgmt_fe_client.h \ +	lib/mgmt_pb.h \  	lib/module.h \  	lib/monotime.h \  	lib/mpls.h \  | 
