]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: fix check for duplicated access-list entries
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 6 Apr 2021 17:35:33 +0000 (20:35 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 12 Apr 2021 13:58:57 +0000 (16:58 +0300)
The correct string representation for "empty" type is an empty string.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/filter_cli.c

index 24980f785876b829d1723cc71c1000b8787e9bbd..5f8567ce09fab62f54c7076fe9c4f9796e7c1151 100644 (file)
@@ -184,7 +184,7 @@ DEFPY_YANG(
                        ada.ada_value[1] = mask_str;
                } else {
                        ada.ada_xpath[0] = "./source-any";
-                       ada.ada_value[0] = "true";
+                       ada.ada_value[0] = "";
                }
 
                /* Duplicated entry without sequence, just quit. */
@@ -324,7 +324,7 @@ DEFPY_YANG(
                        idx++;
                } else {
                        ada.ada_xpath[idx] = "./source-any";
-                       ada.ada_value[idx] = "true";
+                       ada.ada_value[idx] = "";
                        idx++;
                }
 
@@ -341,7 +341,7 @@ DEFPY_YANG(
                        idx++;
                } else {
                        ada.ada_xpath[idx] = "./destination-any";
-                       ada.ada_value[idx] = "true";
+                       ada.ada_value[idx] = "";
                        idx++;
                }
 
@@ -517,7 +517,7 @@ DEFPY_YANG(
                        }
                } else {
                        ada.ada_xpath[0] = "./any";
-                       ada.ada_value[0] = "true";
+                       ada.ada_value[0] = "";
                }
 
                /* Duplicated entry without sequence, just quit. */
@@ -715,7 +715,7 @@ DEFPY_YANG(
                        }
                } else {
                        ada.ada_xpath[0] = "./any";
-                       ada.ada_value[0] = "true";
+                       ada.ada_value[0] = "";
                }
 
                /* Duplicated entry without sequence, just quit. */
@@ -913,7 +913,7 @@ DEFPY_YANG(
                        ada.ada_value[0] = mac_str;
                } else {
                        ada.ada_xpath[0] = "./any";
-                       ada.ada_value[0] = "true";
+                       ada.ada_value[0] = "";
                }
 
                /* Duplicated entry without sequence, just quit. */