Class SetCommunityHandler
java.lang.Object
org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.AbstractCommunityHandler
org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.actions.SetCommunityHandler
- All Implemented Interfaces:
ActionsPolicy<SetCommunity>
,BgpActionPolicy<SetCommunity>
public final class SetCommunityHandler
extends AbstractCommunityHandler
implements BgpActionPolicy<SetCommunity>
Prepend / Replace / Remove a set of communities.
-
Field Summary
Fields inherited from class org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.AbstractCommunityHandler
communitySets
-
Constructor Summary
ConstructorDescriptionSetCommunityHandler
(org.opendaylight.mdsal.binding.api.DataBroker dataBroker) -
Method Summary
Modifier and TypeMethodDescriptionapplyExportAction
(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, Attributes attributes, SetCommunity bgpActions) Applies action to Route Attributes container (Export Policy).applyImportAction
(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, Attributes attributes, SetCommunity bgpActions) Applies action to Route Attributes container (Import Policy).
-
Constructor Details
-
SetCommunityHandler
public SetCommunityHandler(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
-
Method Details
-
applyImportAction
public Attributes applyImportAction(RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, Attributes attributes, SetCommunity bgpActions) Description copied from interface:ActionsPolicy
Applies action to Route Attributes container (Import Policy).- Specified by:
applyImportAction
in interfaceActionsPolicy<SetCommunity>
- 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, SetCommunity bgpActions) Description copied from interface:ActionsPolicy
Applies action to Route Attributes container (Export Policy).- Specified by:
applyExportAction
in interfaceActionsPolicy<SetCommunity>
- 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.
-