From: Igor Ryzhov Date: Tue, 6 Apr 2021 17:35:33 +0000 (+0300) Subject: lib: fix check for duplicated access-list entries X-Git-Tag: base_8.0~146^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=451e6dcfc7808be39f838c123ddf2d399a8a9564;p=mirror%2Ffrr.git lib: fix check for duplicated access-list entries The correct string representation for "empty" type is an empty string. Signed-off-by: Igor Ryzhov --- diff --git a/lib/filter_cli.c b/lib/filter_cli.c index 96444ac970..a92b0d05e9 100644 --- a/lib/filter_cli.c +++ b/lib/filter_cli.c @@ -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. */