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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ExtendedCommunities>
getConditionParameter(Attributes attributes)
Returns the specific attribute to check if match condition.static VpnNonMemberHandler
getInstance()
boolean
matchExportCondition(Class<? extends AfiSafiType> afiSafiType, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, List<ExtendedCommunities> attributes, VpnNonMemberCondition conditions)
Check if route matches defined condition (Export Policy).boolean
matchImportCondition(Class<? extends AfiSafiType> afiSafiType, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, List<ExtendedCommunities> attributes, VpnNonMemberCondition conditions)
Check if route matches defined condition (Import Policy).
-
-
-
Method Detail
-
getInstance
public static VpnNonMemberHandler getInstance()
-
matchImportCondition
public boolean matchImportCondition(Class<? extends 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(Class<? extends 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
public List<ExtendedCommunities> getConditionParameter(Attributes attributes)
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
-
-