summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-11-14 19:50:42 -0200
committerRenato Westphal <renato@opensourcerouting.org>2018-11-26 17:38:08 -0200
commit85cd3326fd4fd424e17c964255d18f3803369e05 (patch)
tree774e6a5c3e240464018e108c705875d75569531e
parent544ca69a5cc7da81ad2f9f72110b34ee03b7cc44 (diff)
lib: do not subscribe to config changes on a state data tree (confd plugin)
Prevent the confd plugin from subscribing to configuration changes on a data tree that contains only state data. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
-rw-r--r--lib/northbound_confd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/northbound_confd.c b/lib/northbound_confd.c
index 352f2ed074..886f17f81f 100644
--- a/lib/northbound_confd.c
+++ b/lib/northbound_confd.c
@@ -430,6 +430,9 @@ static int frr_confd_init_cdb(void)
continue;
}
+ if (CHECK_FLAG(snode->flags, LYS_CONFIG_R))
+ continue;
+
nb_node = snode->priv;
if (debug_northbound)
zlog_debug("%s: subscribing to '%s'", __func__,