Merge pull request #9743 from pguibert6WIND/largecomm

bgpd: large community exact match fix
This commit is contained in:
Jafar Al-Gharaibeh 2021-10-05 14:30:45 -05:00 committed by GitHub
commit f72b987de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -720,7 +720,7 @@ bool lcommunity_list_exact_match(struct lcommunity *lcom,
return entry->direct == COMMUNITY_PERMIT;
if (entry->style == LARGE_COMMUNITY_LIST_STANDARD) {
if (lcommunity_cmp(lcom, entry->u.com))
if (lcommunity_cmp(lcom, entry->u.lcom))
return entry->direct == COMMUNITY_PERMIT;
} else if (entry->style == LARGE_COMMUNITY_LIST_EXPANDED) {
if (lcommunity_regexp_match(lcom, entry->reg))