Class VpnNonMemberHandler
java.lang.Object
org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.conditions.VpnNonMemberHandler
- All Implemented Interfaces:
BgpConditionsAugmentationPolicy<VpnNonMemberCondition,
,List<ExtendedCommunities>> ConditionsPolicy<VpnNonMemberCondition,
List<ExtendedCommunities>>
public final class VpnNonMemberHandler
extends Object
implements BgpConditionsAugmentationPolicy<VpnNonMemberCondition,List<ExtendedCommunities>>
Returns true if Route Target extended communities attributes are not part of the VPN membership of destiny peer.
- Author:
- Claudio D. Gasparini
-
Method Summary
Modifier and TypeMethodDescriptiongetConditionParameter
(Attributes attributes) Returns the specific attribute to check if match condition.static VpnNonMemberHandler
boolean
matchExportCondition
(AfiSafiType afiSafiType, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, List<ExtendedCommunities> attributes, VpnNonMemberCondition conditions) Check if route matches defined condition (Export Policy).boolean
matchImportCondition
(AfiSafiType afiSafiType, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, List<ExtendedCommunities> attributes, VpnNonMemberCondition conditions) Check if route matches defined condition (Import Policy).
-
Method Details
-
getInstance
-
matchImportCondition
public boolean matchImportCondition(AfiSafiType afiSafiType, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, List<ExtendedCommunities> attributes, VpnNonMemberCondition conditions) Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Import Policy).- Specified by:
matchImportCondition
in interfaceConditionsPolicy<VpnNonMemberCondition,
List<ExtendedCommunities>> - Parameters:
afiSafiType
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryImportParameters
- contains route basic informationattributes
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
matchExportCondition
public boolean matchExportCondition(AfiSafiType afiSafiType, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, List<ExtendedCommunities> attributes, VpnNonMemberCondition conditions) Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Export Policy).- Specified by:
matchExportCondition
in interfaceConditionsPolicy<VpnNonMemberCondition,
List<ExtendedCommunities>> - Parameters:
afiSafiType
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryExportParameters
- route basic export informationattributes
- 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<VpnNonMemberCondition,
List<ExtendedCommunities>> - Parameters:
attributes
- route attributes- Returns:
- specific attribute
-