summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_clist.c
diff options
context:
space:
mode:
authorprerana <prerana@vmware.com>2021-05-03 22:03:04 +0200
committerprerana <prerana@vmware.com>2021-05-04 15:24:22 +0200
commita9f42ac2e349694cb5384f80c8a0981b62e018c7 (patch)
tree788af1fd8584fae3453531d984049ec46ac25592 /bgpd/bgp_clist.c
parentMerge pull request #8603 from Fredi-raspall/pr_tilfa_link_fallback (diff)
downloadfrr-a9f42ac2e349694cb5384f80c8a0981b62e018c7.tar.xz
frr-a9f42ac2e349694cb5384f80c8a0981b62e018c7.zip
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>
Diffstat (limited to 'bgpd/bgp_clist.c')
-rw-r--r--bgpd/bgp_clist.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/bgpd/bgp_clist.c b/bgpd/bgp_clist.c
index e17cce3ff..50122ad7d 100644
--- a/bgpd/bgp_clist.c
+++ b/bgpd/bgp_clist.c
@@ -1117,9 +1117,6 @@ int lcommunity_list_set(struct community_list_handler *ch, const char *name,
}
if (str) {
- if (!lcommunity_list_valid(str, style))
- return COMMUNITY_LIST_ERR_MALFORMED_VAL;
-
if (style == LARGE_COMMUNITY_LIST_STANDARD)
lcom = lcommunity_str2com(str);
else