Class MatchOriginatorIdSetHandler
java.lang.Object
org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.conditions.MatchOriginatorIdSetHandler
- All Implemented Interfaces:
BgpConditionsAugmentationPolicy<MatchOriginatorIdSetCondition,
,OriginatorId> ConditionsPolicy<MatchOriginatorIdSetCondition,
OriginatorId>
public final class MatchOriginatorIdSetHandler
extends Object
implements BgpConditionsAugmentationPolicy<MatchOriginatorIdSetCondition,OriginatorId>
Match an Originator Id(ANY, INVERT).
-
Constructor Summary
ConstructorDescriptionMatchOriginatorIdSetHandler
(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, OriginatorId originatorId, MatchOriginatorIdSetCondition conditions) Check if route matches defined condition (Export Policy).boolean
matchImportCondition
(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, OriginatorId originatorId, MatchOriginatorIdSetCondition conditions) Check if route matches defined condition (Import Policy).
-
Constructor Details
-
MatchOriginatorIdSetHandler
public MatchOriginatorIdSetHandler(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
-
Method Details
-
matchImportCondition
public boolean matchImportCondition(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, OriginatorId originatorId, MatchOriginatorIdSetCondition conditions) Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Import Policy).- Specified by:
matchImportCondition
in interfaceConditionsPolicy<MatchOriginatorIdSetCondition,
OriginatorId> - Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryImportParameters
- contains route basic informationoriginatorId
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
matchExportCondition
public boolean matchExportCondition(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, OriginatorId originatorId, MatchOriginatorIdSetCondition conditions) Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Export Policy).- Specified by:
matchExportCondition
in interfaceConditionsPolicy<MatchOriginatorIdSetCondition,
OriginatorId> - Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryExportParameters
- route basic export informationoriginatorId
- 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<MatchOriginatorIdSetCondition,
OriginatorId> - Parameters:
attributes
- route attributes- Returns:
- specific attribute
-