extcommunity-list expanded x delete
matches against all extended community values making it impossible to delete only a single extcommunity by regex
#17081
Labels
Description
I'm trying to delete one type of extended community with any value (e.g. all "RT:x:y", no matter x and y) but not extended communities with other types.
The following config removes all extended community entries, even non RT types.
Removing a single RT value works (only
RT:65002:9001
is removed):The problem seems to be that
ecommunity_list_match_delete
passesecom
toecommunity_regexp_match
and notlocal_ecom
. So the full string of the ecommunity is compared in each iteration. Fixing this should be as simple as passinglocal_ecom
, but I didn't test it.From a quick look it the same issue affects
community_list_match_delete
andlcommunity_list_match_delete
as well. Or is this expected behavior?Version
How to reproduce
See above
Expected behavior
extcommunity-list expanded
matches against a single ecommunity value.Actual behavior
extcommunity-list expanded
matches against the whole ecommunity value.Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: