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
ConstructorDescriptionMatchRoleSetHandler
(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 exportParameters, Void attributes, MatchRoleSetCondition conditions) Check if route matches defined condition (Export Policy).boolean
matchImportCondition
(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters importParameters, Void attributes, MatchRoleSetCondition conditions) Check if route matches defined condition (Import Policy).
-
Constructor Details
-
MatchRoleSetHandler
public MatchRoleSetHandler(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
-
Method Details
-
matchImportCondition
public boolean matchImportCondition(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(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
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
-