Class MatchBgpNeighborSetHandler
java.lang.Object
org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.conditions.MatchBgpNeighborSetHandler
- All Implemented Interfaces:
BgpConditionsAugmentationPolicy<MatchBgpNeighborCondition,
,Void> ConditionsPolicy<MatchBgpNeighborCondition,
Void>
public final class MatchBgpNeighborSetHandler
extends Object
implements BgpConditionsAugmentationPolicy<MatchBgpNeighborCondition,Void>
Match a set of Neighbors(ip address) (ANY, INVERT).
-
Constructor Summary
ConstructorDescriptionMatchBgpNeighborSetHandler
(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 nonAttributres, MatchBgpNeighborCondition conditions) Check if route matches defined condition (Export Policy).boolean
matchImportCondition
(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters importParameters, Void nonAttributres, MatchBgpNeighborCondition conditions) Check if route matches defined condition (Import Policy).
-
Constructor Details
-
MatchBgpNeighborSetHandler
public MatchBgpNeighborSetHandler(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
-
Method Details
-
matchImportCondition
public boolean matchImportCondition(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters importParameters, Void nonAttributres, MatchBgpNeighborCondition conditions) Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Import Policy).- Specified by:
matchImportCondition
in interfaceConditionsPolicy<MatchBgpNeighborCondition,
Void> - Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)importParameters
- contains route basic informationnonAttributres
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
matchExportCondition
public boolean matchExportCondition(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters exportParameters, Void nonAttributres, MatchBgpNeighborCondition conditions) Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Export Policy).- Specified by:
matchExportCondition
in interfaceConditionsPolicy<MatchBgpNeighborCondition,
Void> - Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)exportParameters
- route basic export informationnonAttributres
- 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<MatchBgpNeighborCondition,
Void> - Parameters:
attributes
- route attributes- Returns:
- specific attribute
-