summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2025-01-20 13:29:37 -0600
committerGitHub <noreply@github.com>2025-01-20 13:29:37 -0600
commitb2d62e50f1e410bb790d2672aa5f6010708f1877 (patch)
tree1159afe780c4adc9fb88e9fdf5a7d617f606221e /doc
parent00eb5cccadd3439521a3d23b08ca65ac48b1ad17 (diff)
parentaa8212d6952234aa1b63cbc086278a1242d91777 (diff)
Merge pull request #17882 from LabNConsulting/chopps/doc-update-mgmtd
small mgmtd-dev doc update and yanglint cleanup
Diffstat (limited to 'doc')
-rw-r--r--doc/developer/mgmtd-dev.rst13
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/developer/mgmtd-dev.rst b/doc/developer/mgmtd-dev.rst
index 4c56cadb28..6cbd617f8c 100644
--- a/doc/developer/mgmtd-dev.rst
+++ b/doc/developer/mgmtd-dev.rst
@@ -160,14 +160,19 @@ Back-End Interface:
should be destroyed with a call to `mgmt_be_client_destroy` and to be safe
NULL out the global `mgmt_be_client` variable.
-#. In ``mgmtd/mgmt_be_adapter.c`` add xpath prefix mappings to a one or both
- mapping arrays (``be_client_config_xpaths`` and ``be_client_oper_xpaths``) to
- direct ``mgmtd`` to send config and oper-state requests to your daemon. NOTE:
- make sure to include library supported xpaths prefixes as well (e.g.,
+#. In ``mgmtd/mgmt_be_adapter.c`` add xpath prefix mappings to a each of the
+ mapping arrays (``be_client_config_xpaths``, ``be_client_oper_xpaths``, and
+ ``be_client_rpc_xpaths``) to direct ``mgmtd`` to send config, oper-state, and
+ RPC requests to your daemon.
+
+ NOTE: make sure to include library supported xpaths prefixes as well (e.g.,
"/frr-interface:lib"). A good way to figure these paths out are to look in
each of the YANG modules that the daemon uses and include each of their paths
in the array.
+#. In ``python/xref2vtysh.py`` add ``VTYSH_xxxD`` (for client xxx) to
+ ``lib/mgmt_be_client.c`` entry in the ``daemon_falgs`` dictionary.
+
Add YANG and CLI into MGMTD
^^^^^^^^^^^^^^^^^^^^^^^^^^^^