summaryrefslogtreecommitdiffstats
path: root/mgmtd/mgmt_fe_adapter.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mgmtd: add native RPC processingIgor Ryzhov2024-04-221-0/+20
| | | | Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* mgmtd: add support for native 'edit' operationIgor Ryzhov2024-03-261-0/+20
| | | | | | | | This operation basically implements support for RESTCONF operations. It receives an xpath and a data tree in JSON/XML format, instead of a list of (xpath, value) tuples as required by the current protobuf interface. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* mgmtd: remove unused commit phase SEND_CFGChristian Hopps2024-02-121-1/+0
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* mgmtd: add support for with-defaults parameter to get-dataIgor Ryzhov2024-01-311-6/+6
| | | | Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* mgmtd: step 4: FE adapter get-tree functionalityChristian Hopps2023-12-281-0/+46
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* mgmtd: enable conn debug when user enables mgmtd debugsChristian Hopps2023-12-051-0/+4
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib, mgmtd: move common header to libIgor Ryzhov2023-11-171-1/+1
| | | | | | | The common header included from lib and other daemons should be located in lib, not in mgmt directory. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* mgmtd: consolidate getcfg and getdata msgs into "get"Christian Hopps2023-06-281-26/+6
| | | | | | eliminates tons of copy and paste code. Signed-off-by: Christian Hopps <chopps@labn.net>
* mgmtd: convert BE/FE adapter to use allocated connectionsChristian Hopps2023-05-281-1/+1
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: mgmtd: add server-side connection code to mgmt_msgChristian Hopps2023-05-281-12/+5
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: remove write-on-off, just requeue to the back of the queueChristian Hopps2023-05-281-4/+0
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* *: Convert `struct event_master` to `struct event_loop`Donald Sharp2023-03-241-2/+1
| | | | | | Let's find a better name for it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* *: Convert struct thread_master to struct event_master and it's ilkDonald Sharp2023-03-241-1/+1
| | | | | | | Convert the `struct thread_master` to `struct event_master` across the code base. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* *: Rename `struct thread` to `struct event`Donald Sharp2023-03-241-4/+4
| | | | | | | | | Effectively a massive search and replace of `struct thread` to `struct event`. Using the term `thread` gives people the thought that this event system is a pthread when it is not Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* mgmtd: lib: utilize msglib constructed from the removed codeChristian Hopps2023-03-221-10/+5
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* mgmtd: Add MGMT Frontend Interface FrameworkChristian Hopps2023-03-221-0/+189
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>