Class SetExtCommunityHandler
java.lang.Object
org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.AbstractExtCommunityHandler
org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.actions.SetExtCommunityHandler
- All Implemented Interfaces:
ActionsPolicy<SetExtCommunity>
,BgpActionPolicy<SetExtCommunity>
public final class SetExtCommunityHandler
extends AbstractExtCommunityHandler
implements BgpActionPolicy<SetExtCommunity>
Prepend External Community.
-
Field Summary
Fields inherited from class org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.AbstractExtCommunityHandler
extCommunitySets
-
Constructor Summary
ConstructorDescriptionSetExtCommunityHandler
(org.opendaylight.mdsal.binding.api.DataBroker dataBroker) -
Method Summary
Modifier and TypeMethodDescriptionapplyExportAction
(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, Attributes attributes, SetExtCommunity bgpActions) Applies action to Route Attributes container (Export Policy).applyImportAction
(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, Attributes attributes, SetExtCommunity bgpActions) Applies action to Route Attributes container (Import Policy).
-
Constructor Details
-
SetExtCommunityHandler
public SetExtCommunityHandler(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
-
Method Details
-
applyImportAction
public Attributes applyImportAction(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, Attributes attributes, SetExtCommunity bgpActions) Description copied from interface:ActionsPolicy
Applies action to Route Attributes container (Import Policy).- Specified by:
applyImportAction
in interfaceActionsPolicy<SetExtCommunity>
- 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 routeEntryExportParameters, Attributes attributes, SetExtCommunity bgpActions) Description copied from interface:ActionsPolicy
Applies action to Route Attributes container (Export Policy).- Specified by:
applyExportAction
in interfaceActionsPolicy<SetExtCommunity>
- Parameters:
routeEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryExportParameters
- contains route basic export informationattributes
- attributesbgpActions
- configured Actions- Returns:
- Filtered attributes, or null if the advertisement should be ignored.
-