mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 12:41:21 +00:00
lib: Fix prefix-list where le is == prefixlen
This should be allowed: robot(config)# ip prefix-list outbound_asp_routes seq 33 permit 1.1.1.0/24 le 24 % Invalid prefix range for 1.1.1.0/24, make sure: len < ge-value <= le-value This commit fixes the issue: robot(config)# ip prefix-list outbound_asp_routes seq 33 permit 1.1.1.0/24 le 23 % Invalid prefix range for 1.1.1.0/24, make sure: len < ge-value <= le-value robot(config)# ip prefix-list outbound_asp_routes seq 33 permit 1.1.1.0/24 le 24 robot(config)# ip prefix-list outbound_asp_routes seq 33 permit 1.1.1.0/24 le 25 robot(config)# Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
09c0e3c04a
commit
4015e91850
@ -933,7 +933,7 @@ static int vty_prefix_list_install(struct vty *vty, afi_t afi, const char *name,
|
||||
if (genum && (genum <= p.prefixlen))
|
||||
return vty_invalid_prefix_range(vty, prefix);
|
||||
|
||||
if (lenum && (lenum <= p.prefixlen))
|
||||
if (lenum && (lenum < p.prefixlen))
|
||||
return vty_invalid_prefix_range(vty, prefix);
|
||||
|
||||
if (lenum && (genum > lenum))
|
||||
|
Loading…
Reference in New Issue
Block a user