]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: do not subscribe to config changes on a state data tree (confd plugin)
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 14 Nov 2018 21:50:42 +0000 (19:50 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 26 Nov 2018 19:38:08 +0000 (17:38 -0200)
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>
lib/northbound_confd.c

index 352f2ed074c5e94f214e81668b3a41cb549e2bac..886f17f81f68bf744b2c3f49d1f3ea50b41b0933 100644 (file)
@@ -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__,