BGP ORF Prefix list incorrectly rejected list with a GE or LE to match the actual
prefix.
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
(cherry picked from commit
e574b842a1584a245e8dbd6bf4e418bfd78ec7b7)
struct prefix_list_entry *pentry;
/* ge and le value check */
- if (orfp->ge && orfp->ge <= orfp->p.prefixlen)
+ if (orfp->ge && orfp->ge < orfp->p.prefixlen)
return CMD_WARNING_CONFIG_FAILED;
- if (orfp->le && orfp->le <= orfp->p.prefixlen)
+ if (orfp->le && orfp->le < orfp->p.prefixlen)
return CMD_WARNING_CONFIG_FAILED;
if (orfp->le && orfp->ge > orfp->le)
return CMD_WARNING_CONFIG_FAILED;