summaryrefslogtreecommitdiff
path: root/lib/filter_cli.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-03-30 00:37:52 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-03-30 00:37:52 +0300
commit4179f151fe80584167dbeeb260144d0cfa171f16 (patch)
tree151fd3524329487a948220a0733b412a57e17878 /lib/filter_cli.c
parentbf79e923167c79b2e813b7e7efda7211949d6378 (diff)
lib: fix checking for duplicated prefix-list entries
Restore the behavior that was before the NB conversion. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/filter_cli.c')
-rw-r--r--lib/filter_cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/filter_cli.c b/lib/filter_cli.c
index 0c49665fd4..24980f7858 100644
--- a/lib/filter_cli.c
+++ b/lib/filter_cli.c
@@ -1336,6 +1336,7 @@ DEFPY_YANG(
if (seq_str == NULL) {
pda.pda_type = "ipv4";
pda.pda_name = name;
+ pda.pda_action = action;
if (prefix_str) {
pda.pda_xpath[arg_idx] = "./ipv4-prefix";
pda.pda_value[arg_idx] = prefix_str;
@@ -1531,6 +1532,7 @@ DEFPY_YANG(
if (seq_str == NULL) {
pda.pda_type = "ipv6";
pda.pda_name = name;
+ pda.pda_action = action;
if (prefix_str) {
pda.pda_xpath[arg_idx] = "./ipv6-prefix";
pda.pda_value[arg_idx] = prefix_str;