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
ConstructorDescriptionMatchAsPathSetHandler
(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, AsPath asPath, MatchAsPathSet conditions) Check if route matches defined condition (Export Policy).boolean
matchImportCondition
(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, AsPath asPath, MatchAsPathSet conditions) Check if route matches defined condition (Import Policy).
-
Constructor Details
-
MatchAsPathSetHandler
public MatchAsPathSetHandler(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
-
Method Details
-
matchImportCondition
public boolean matchImportCondition(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(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
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
-