Class MatchExtCommunitySetHandler
- java.lang.Object
-
- org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.AbstractExtCommunityHandler
-
- org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.conditions.MatchExtCommunitySetHandler
-
- All Implemented Interfaces:
BgpConditionsPolicy<MatchExtCommunitySet,List<ExtendedCommunities>>
,ConditionsPolicy<MatchExtCommunitySet,List<ExtendedCommunities>>
public final class MatchExtCommunitySetHandler extends AbstractExtCommunityHandler implements BgpConditionsPolicy<MatchExtCommunitySet,List<ExtendedCommunities>>
Math a set of External Communities (ALL, ANY, INVERT).
-
-
Field Summary
-
Fields inherited from class org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.AbstractExtCommunityHandler
extCommunitySets
-
-
Constructor Summary
Constructors Constructor Description MatchExtCommunitySetHandler(org.opendaylight.mdsal.binding.api.DataBroker databroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ExtendedCommunities>
getConditionParameter(Attributes attributes)
Returns the specific attribute to check if match condition.boolean
matchExportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, List<ExtendedCommunities> extendedCommunities, MatchExtCommunitySet conditions)
Check if route matches defined condition (Export Policy).boolean
matchImportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, List<ExtendedCommunities> extendedCommunities, MatchExtCommunitySet conditions)
Check if route matches defined condition (Import Policy).
-
-
-
Method Detail
-
matchImportCondition
public boolean matchImportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, List<ExtendedCommunities> extendedCommunities, MatchExtCommunitySet conditions)
Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Import Policy).- Specified by:
matchImportCondition
in interfaceConditionsPolicy<MatchExtCommunitySet,List<ExtendedCommunities>>
- Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryImportParameters
- contains route basic informationextendedCommunities
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
matchExportCondition
public boolean matchExportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, List<ExtendedCommunities> extendedCommunities, MatchExtCommunitySet conditions)
Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Export Policy).- Specified by:
matchExportCondition
in interfaceConditionsPolicy<MatchExtCommunitySet,List<ExtendedCommunities>>
- Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryExportParameters
- route basic export informationextendedCommunities
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
getConditionParameter
public List<ExtendedCommunities> getConditionParameter(Attributes attributes)
Description copied from interface:ConditionsPolicy
Returns the specific attribute to check if match condition.- Specified by:
getConditionParameter
in interfaceConditionsPolicy<MatchExtCommunitySet,List<ExtendedCommunities>>
- Parameters:
attributes
- route attributes- Returns:
- specific attribute
-
-