]> git.puffer.fish Git - matthieu/frr.git/commit
mgmtd: Enroll Staticd as a backend client for MGMTD
authorChristian Hopps <chopps@labn.net>
Tue, 28 Feb 2023 09:08:41 +0000 (04:08 -0500)
committerChristian Hopps <chopps@labn.net>
Wed, 22 Mar 2023 02:09:07 +0000 (22:09 -0400)
commitd1e85e36008136fcbd0ab2133a78c30af3e612fc
treeff42b64227d032735c7f1d89a1fed4d52914f986
parentfc52ca1e18f5cabff96f2dca1004bd81cee0ecab
mgmtd: Enroll Staticd as a backend client for MGMTD

This commmit introduces Staticd as a backend client for the MGMTd
framework. All the static commands will be diverted to the MGMT
daemon and will use the transactional model to make changes to the
internal state. Similar mechanism can be used by other daemons to use
the MGMT framework in the future.

This commit includes the following functionalities in the changeset:
1. Diverts all the staticd (config only) commands to MGMTd.
2. Enrolls staticd as a backend client to use the MGMT framework.
3. Modify the staticd NB config handlers so that they can be compiled
   into a library and loaded in the MGMTd process context.

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>
lib/mgmt_be_client.c
lib/mgmt_be_client.h
mgmtd/mgmt_be_adapter.c
mgmtd/mgmt_main.c
mgmtd/mgmt_vty.c
mgmtd/subdir.am
staticd/static_main.c
staticd/static_routes.c
staticd/static_routes.h
staticd/static_vty.c