From 85cd3326fd4fd424e17c964255d18f3803369e05 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Wed, 14 Nov 2018 19:50:42 -0200 Subject: [PATCH] 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 --- lib/northbound_confd.c | 3 +++ 1 file changed, 3 insertions(+) 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__,