summaryrefslogtreecommitdiff
path: root/lib/filter_cli.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-03-29 21:26:28 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-03-29 22:54:03 +0300
commit18abe2b91ef41d4c6ccdd19ac505f6705db64f87 (patch)
tree007ab35f8314d34ea06c245c2a84c47094d8c2f5 /lib/filter_cli.c
parent45af60f0bbeadae78ff8f97ea638d3592e7605c9 (diff)
lib: fix checking for duplicated access-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/filter_cli.c b/lib/filter_cli.c
index 5d66a9fc73..0c49665fd4 100644
--- a/lib/filter_cli.c
+++ b/lib/filter_cli.c
@@ -173,6 +173,7 @@ DEFPY_YANG(
if (seq_str == NULL) {
ada.ada_type = "ipv4";
ada.ada_name = name;
+ ada.ada_action = action;
if (host_str && mask_str == NULL) {
ada.ada_xpath[0] = "./host";
ada.ada_value[0] = host_str;
@@ -309,6 +310,7 @@ DEFPY_YANG(
if (seq_str == NULL) {
ada.ada_type = "ipv4";
ada.ada_name = name;
+ ada.ada_action = action;
if (src_str && src_mask_str == NULL) {
ada.ada_xpath[idx] = "./host";
ada.ada_value[idx] = src_str;
@@ -504,6 +506,7 @@ DEFPY_YANG(
if (seq_str == NULL) {
ada.ada_type = "ipv4";
ada.ada_name = name;
+ ada.ada_action = action;
if (prefix_str) {
ada.ada_xpath[0] = "./ipv4-prefix";
@@ -701,6 +704,7 @@ DEFPY_YANG(
if (seq_str == NULL) {
ada.ada_type = "ipv6";
ada.ada_name = name;
+ ada.ada_action = action;
if (prefix_str) {
ada.ada_xpath[0] = "./ipv6-prefix";
@@ -902,6 +906,7 @@ DEFPY_YANG(
if (seq_str == NULL) {
ada.ada_type = "mac";
ada.ada_name = name;
+ ada.ada_action = action;
if (mac_str) {
ada.ada_xpath[0] = "./mac";