summaryrefslogtreecommitdiffstats
path: root/mgmtd/mgmt_be_adapter.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-01-13 15:26:55 +0100
committerChristian Hopps <chopps@labn.net>2024-01-13 15:26:55 +0100
commita9dc7e9cc0c06ab27d16f44490f560b65569eac0 (patch)
tree3e2feaf41a6ddaac736309343618104f1fb66dd6 /mgmtd/mgmt_be_adapter.c
parentMerge pull request #15144 from LabNConsulting/chopps/cov-issue-2 (diff)
downloadfrr-a9dc7e9cc0c06ab27d16f44490f560b65569eac0.tar.xz
frr-a9dc7e9cc0c06ab27d16f44490f560b65569eac0.zip
doc: mgmtd: update mgmtd conversion doc to be current.
Also change `be_client_xpaths` to `be_client_config_xpaths` referred in the doc to make much clearer it's use (since there's a separate `be_client_oper_xpaths`. Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to '')
-rw-r--r--mgmtd/mgmt_be_adapter.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mgmtd/mgmt_be_adapter.c b/mgmtd/mgmt_be_adapter.c
index eb6e79f2a..2be70901a 100644
--- a/mgmtd/mgmt_be_adapter.c
+++ b/mgmtd/mgmt_be_adapter.c
@@ -59,7 +59,7 @@ struct mgmt_be_xpath_map {
* above map as well.
*/
#if HAVE_STATICD
-static const char *const staticd_xpaths[] = {
+static const char *const staticd_config_xpaths[] = {
"/frr-vrf:lib",
"/frr-interface:lib",
"/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-staticd:staticd",
@@ -67,10 +67,9 @@ static const char *const staticd_xpaths[] = {
};
#endif
-static const char *const *be_client_xpaths[MGMTD_BE_CLIENT_ID_MAX] = {
-
+static const char *const *be_client_config_xpaths[MGMTD_BE_CLIENT_ID_MAX] = {
#ifdef HAVE_STATICD
- [MGMTD_BE_CLIENT_ID_STATICD] = staticd_xpaths,
+ [MGMTD_BE_CLIENT_ID_STATICD] = staticd_config_xpaths,
#endif
};
@@ -190,7 +189,7 @@ static void mgmt_be_xpath_map_init(void)
FOREACH_MGMTD_BE_CLIENT_ID (id) {
/* Initialize the common config init map */
- for (init = be_client_xpaths[id]; init && *init; init++) {
+ for (init = be_client_config_xpaths[id]; init && *init; init++) {
MGMTD_BE_ADAPTER_DBG(" - CFG XPATH: '%s'", *init);
mgmt_register_client_xpath(id, *init, true);
}
@@ -843,7 +842,8 @@ static bool be_is_client_interested(const char *xpath,
MGMTD_BE_ADAPTER_DBG("Checking client: %s for xpath: '%s'",
mgmt_be_client_id2name(id), xpath);
- xpaths = config ? be_client_xpaths[id] : be_client_oper_xpaths[id];
+ xpaths = config ? be_client_config_xpaths[id]
+ : be_client_oper_xpaths[id];
if (xpaths) {
for (; *xpaths; xpaths++) {
if (mgmt_be_xpath_prefix(*xpaths, xpath)) {