mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 23:53:28 +00:00
lib: fix check for duplicated access-list entries
The correct string representation for "empty" type is an empty string. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
964788a11f
commit
451e6dcfc7
@ -184,7 +184,7 @@ DEFPY_YANG(
|
|||||||
ada.ada_value[1] = mask_str;
|
ada.ada_value[1] = mask_str;
|
||||||
} else {
|
} else {
|
||||||
ada.ada_xpath[0] = "./source-any";
|
ada.ada_xpath[0] = "./source-any";
|
||||||
ada.ada_value[0] = "true";
|
ada.ada_value[0] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Duplicated entry without sequence, just quit. */
|
/* Duplicated entry without sequence, just quit. */
|
||||||
@ -324,7 +324,7 @@ DEFPY_YANG(
|
|||||||
idx++;
|
idx++;
|
||||||
} else {
|
} else {
|
||||||
ada.ada_xpath[idx] = "./source-any";
|
ada.ada_xpath[idx] = "./source-any";
|
||||||
ada.ada_value[idx] = "true";
|
ada.ada_value[idx] = "";
|
||||||
idx++;
|
idx++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,7 +341,7 @@ DEFPY_YANG(
|
|||||||
idx++;
|
idx++;
|
||||||
} else {
|
} else {
|
||||||
ada.ada_xpath[idx] = "./destination-any";
|
ada.ada_xpath[idx] = "./destination-any";
|
||||||
ada.ada_value[idx] = "true";
|
ada.ada_value[idx] = "";
|
||||||
idx++;
|
idx++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -517,7 +517,7 @@ DEFPY_YANG(
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ada.ada_xpath[0] = "./any";
|
ada.ada_xpath[0] = "./any";
|
||||||
ada.ada_value[0] = "true";
|
ada.ada_value[0] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Duplicated entry without sequence, just quit. */
|
/* Duplicated entry without sequence, just quit. */
|
||||||
@ -715,7 +715,7 @@ DEFPY_YANG(
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ada.ada_xpath[0] = "./any";
|
ada.ada_xpath[0] = "./any";
|
||||||
ada.ada_value[0] = "true";
|
ada.ada_value[0] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Duplicated entry without sequence, just quit. */
|
/* Duplicated entry without sequence, just quit. */
|
||||||
@ -913,7 +913,7 @@ DEFPY_YANG(
|
|||||||
ada.ada_value[0] = mac_str;
|
ada.ada_value[0] = mac_str;
|
||||||
} else {
|
} else {
|
||||||
ada.ada_xpath[0] = "./any";
|
ada.ada_xpath[0] = "./any";
|
||||||
ada.ada_value[0] = "true";
|
ada.ada_value[0] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Duplicated entry without sequence, just quit. */
|
/* Duplicated entry without sequence, just quit. */
|
||||||
|
Loading…
Reference in New Issue
Block a user