Closed xchu-arista closed 4 months ago
@dplore for vis
Agreed, when using regex, it only seems useful to use match ANY. Will bring up in OC Operator call on May 23
This proposal was reviewed without objection. I have raised #891 to address it. Please provide comments there.
This issue is stale because it has been open 180 days with no activity. If you wish to keep this issue active, please remove the stale label or add a comment, otherwise will be closed in 14 days.
In
routing-policy/defined-sets/bgp-defined-sets
we haveSpecifically,
match-set-options=ALL
means "match is true if given value matches all members of the defined set" (see https://github.com/openconfig/public/blob/master/release/models/policy/openconfig-policy-types.yang#L102-L121).This is straightforward when
leaf-list community-member
is just a list of community values. For all members of the defined set to match the given value, we just needleaf-list community-member
to be a subset of the BGP community path.However, it's unclear what
match-set-options=ALL
means whenleaf-list community-member
is a list of regular expressions (see https://github.com/openconfig/public/blob/master/release/models/bgp/openconfig-bgp-policy.yang#L443-L472).To me this doesn't seem to make much sense semantically. If this is indeed something meaningful we can configure, then a clarification in the description section can be really helpful.
Tagging @dplore because we chatted about this offline.