From a9f42ac2e349694cb5384f80c8a0981b62e018c7 Mon Sep 17 00:00:00 2001 From: prerana Date: Mon, 3 May 2021 13:03:04 -0700 Subject: [PATCH] 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 --- bgpd/bgp_clist.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/bgpd/bgp_clist.c b/bgpd/bgp_clist.c index e17cce3ff6..50122ad7da 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