summaryrefslogtreecommitdiffstats
path: root/lib/northbound_confd.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-11-14 22:50:42 +0100
committerRenato Westphal <renato@opensourcerouting.org>2018-11-26 20:38:08 +0100
commit85cd3326fd4fd424e17c964255d18f3803369e05 (patch)
tree774e6a5c3e240464018e108c705875d75569531e /lib/northbound_confd.c
parentlib: add support for YANG lists with mixed config and state data (diff)
downloadfrr-85cd3326fd4fd424e17c964255d18f3803369e05.tar.xz
frr-85cd3326fd4fd424e17c964255d18f3803369e05.zip
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>
Diffstat (limited to 'lib/northbound_confd.c')
-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 352f2ed07..886f17f81 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__,