Class MatchRoleSetHandler
- java.lang.Object
-
- org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.conditions.MatchRoleSetHandler
-
- All Implemented Interfaces:
BgpConditionsAugmentationPolicy<MatchRoleSetCondition,Void>
,ConditionsPolicy<MatchRoleSetCondition,Void>
public final class MatchRoleSetHandler extends Object implements BgpConditionsAugmentationPolicy<MatchRoleSetCondition,Void>
Match a Peer Role (FROM, TO).
-
-
Constructor Summary
Constructors Constructor Description MatchRoleSetHandler(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Void
getConditionParameter(Attributes attributes)
Returns the specific attribute to check if match condition.boolean
matchExportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters exportParameters, Void attributes, MatchRoleSetCondition conditions)
Check if route matches defined condition (Export Policy).boolean
matchImportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters importParameters, Void attributes, MatchRoleSetCondition conditions)
Check if route matches defined condition (Import Policy).
-
-
-
Method Detail
-
matchImportCondition
public boolean matchImportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters importParameters, Void attributes, MatchRoleSetCondition conditions)
Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Import Policy).- Specified by:
matchImportCondition
in interfaceConditionsPolicy<MatchRoleSetCondition,Void>
- Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)importParameters
- contains route basic informationattributes
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
matchExportCondition
public boolean matchExportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters exportParameters, Void attributes, MatchRoleSetCondition conditions)
Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Export Policy).- Specified by:
matchExportCondition
in interfaceConditionsPolicy<MatchRoleSetCondition,Void>
- Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)exportParameters
- route basic export informationattributes
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
getConditionParameter
public Void getConditionParameter(Attributes attributes)
Description copied from interface:ConditionsPolicy
Returns the specific attribute to check if match condition.- Specified by:
getConditionParameter
in interfaceConditionsPolicy<MatchRoleSetCondition,Void>
- Parameters:
attributes
- route attributes- Returns:
- specific attribute
-
-