mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 09:06:46 +00:00
bgpd: BGP large community-list configuration with regex is failing.
frr(config)# bgp large-community-list expanded com1 permit .* % Malformed community-list value The check to validate large-community against UINT_MAX is added for both standard and expanded community. But however it needs to be validated only for standard community. Signed-off-by: Prerana-GB <prerana@vmware.com>
This commit is contained in:
parent
c0ec883b45
commit
a9f42ac2e3
@ -1117,9 +1117,6 @@ int lcommunity_list_set(struct community_list_handler *ch, const char *name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (str) {
|
if (str) {
|
||||||
if (!lcommunity_list_valid(str, style))
|
|
||||||
return COMMUNITY_LIST_ERR_MALFORMED_VAL;
|
|
||||||
|
|
||||||
if (style == LARGE_COMMUNITY_LIST_STANDARD)
|
if (style == LARGE_COMMUNITY_LIST_STANDARD)
|
||||||
lcom = lcommunity_str2com(str);
|
lcom = lcommunity_str2com(str);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user