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>
This commit is contained in:
Renato Westphal 2018-11-14 19:50:42 -02:00
parent 544ca69a5c
commit 85cd3326fd

View 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__,