Class AsPathPrepend
java.lang.Object
org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.actions.AsPathPrepend
- All Implemented Interfaces:
ActionsPolicy<SetAsPathPrepend>,BgpActionPolicy<SetAsPathPrepend>
Prepend local AS, one time(n times not supported yet).
-
Method Summary
Modifier and TypeMethodDescriptionapplyExportAction(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters exportParameters, Attributes attributes, SetAsPathPrepend actions) Applies action to Route Attributes container (Export Policy).applyImportAction(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, Attributes attributes, SetAsPathPrepend bgpActions) Applies action to Route Attributes container (Import Policy).static AsPathPrepend
-
Method Details
-
getInstance
-
applyImportAction
public Attributes applyImportAction(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, Attributes attributes, SetAsPathPrepend bgpActions) Description copied from interface:ActionsPolicyApplies action to Route Attributes container (Import Policy).- Specified by:
applyImportActionin interfaceActionsPolicy<SetAsPathPrepend>- Parameters:
routeEntryInfo- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryImportParameters- contains route basic informationattributes- attributesbgpActions- configured Actions- Returns:
- Filtered attributes, or null if the advertisement should be ignored.
-
applyExportAction
public Attributes applyExportAction(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters exportParameters, Attributes attributes, SetAsPathPrepend actions) Description copied from interface:ActionsPolicyApplies action to Route Attributes container (Export Policy).- Specified by:
applyExportActionin interfaceActionsPolicy<SetAsPathPrepend>- 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.
-