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
Constructors Constructor Description MatchOriginatorIdSetHandler(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OriginatorId
getConditionParameter(Attributes attributes)
Returns the specific attribute to check if match condition.boolean
matchExportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, OriginatorId originatorId, MatchOriginatorIdSetCondition conditions)
Check if route matches defined condition (Export Policy).boolean
matchImportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, OriginatorId originatorId, MatchOriginatorIdSetCondition conditions)
Check if route matches defined condition (Import Policy).
-
-
-
Method Detail
-
matchImportCondition
public boolean matchImportCondition(Class<? extends 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(Class<? extends 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
public OriginatorId getConditionParameter(Attributes attributes)
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
-
-