Class ClientAttributePrependHandler
java.lang.Object
org.opendaylight.protocol.bgp.route.targetcontrain.impl.route.policy.ClientAttributePrependHandler
- All Implemented Interfaces:
ActionsPolicy<ClientAttributePrepend>
,BgpActionAugPolicy<ClientAttributePrepend>
public final class ClientAttributePrependHandler
extends Object
implements BgpActionAugPolicy<ClientAttributePrepend>
-
Method Summary
Modifier and TypeMethodDescriptionapplyExportAction
(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters exportParameters, Attributes attributes, ClientAttributePrepend actions) Applies action to Route Attributes container (Export Policy).applyImportAction
(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeBaseParameters, Attributes attributes, ClientAttributePrepend actions) Applies action to Route Attributes container (Import Policy).
-
Method Details
-
getInstance
-
applyImportAction
public Attributes applyImportAction(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeBaseParameters, Attributes attributes, ClientAttributePrepend actions) Description copied from interface:ActionsPolicy
Applies action to Route Attributes container (Import Policy).- Specified by:
applyImportAction
in interfaceActionsPolicy<ClientAttributePrepend>
- Parameters:
routeEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeBaseParameters
- contains route basic informationattributes
- attributesactions
- configured Actions- Returns:
- Filtered attributes, or null if the advertisement should be ignored.
-
applyExportAction
public Attributes applyExportAction(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters exportParameters, Attributes attributes, ClientAttributePrepend actions) Description copied from interface:ActionsPolicy
Applies action to Route Attributes container (Export Policy).- Specified by:
applyExportAction
in interfaceActionsPolicy<ClientAttributePrepend>
- Parameters:
routeEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)exportParameters
- contains route basic export informationattributes
- attributesactions
- configured Actions- Returns:
- Filtered attributes, or null if the advertisement should be ignored.
-