summaryrefslogtreecommitdiff
path: root/lib/filter_nb.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-04-06 21:09:50 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-04-06 23:18:47 +0300
commita0145975e3aff120df7edbd3cd76cebadbe71940 (patch)
tree944ab217acd1ca6d1c168f88672fb3919d59664b /lib/filter_nb.c
parent451e6dcfc7808be39f838c123ddf2d399a8a9564 (diff)
lib: fix usage of operational data in CLI
CLI must never use operational data, because this won't work in transactional mode. Rework search for prefix-list/access-list entries using only candidate config. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/filter_nb.c')
-rw-r--r--lib/filter_nb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/filter_nb.c b/lib/filter_nb.c
index 3aa362ad63..08c29789b9 100644
--- a/lib/filter_nb.c
+++ b/lib/filter_nb.c
@@ -279,6 +279,7 @@ static int _acl_is_dup(const struct lyd_node *dnode, void *arg)
}
ada->ada_found = true;
+ ada->ada_seq = yang_dnode_get_uint32(dnode, "sequence");
return YANG_ITER_STOP;
}
@@ -416,6 +417,7 @@ static int _plist_is_dup(const struct lyd_node *dnode, void *arg)
}
pda->pda_found = true;
+ pda->pda_seq = yang_dnode_get_uint32(dnode, "sequence");
return YANG_ITER_STOP;
}