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
ConstructorDescriptionMatchExtCommunitySetHandler
(org.opendaylight.mdsal.binding.api.DataBroker databroker) -
Method Summary
Modifier and TypeMethodDescriptiongetConditionParameter
(Attributes attributes) Returns the specific attribute to check if match condition.boolean
matchExportCondition
(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, List<ExtendedCommunities> extendedCommunities, MatchExtCommunitySet conditions) Check if route matches defined condition (Export Policy).boolean
matchImportCondition
(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, List<ExtendedCommunities> extendedCommunities, MatchExtCommunitySet conditions) Check if route matches defined condition (Import Policy).
-
Constructor Details
-
MatchExtCommunitySetHandler
public MatchExtCommunitySetHandler(org.opendaylight.mdsal.binding.api.DataBroker databroker)
-
-
Method Details
-
matchImportCondition
public boolean matchImportCondition(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(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
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
-