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