public final class SetMacMapAclTask extends UpdateMacMapTask implements RpcOutputGenerator<VtnUpdateType,SetMacMapAclOutput>
SetMacMapAclTask
describes the MD-SAL datastore transaction task
that configures the access control list in the MAC mapping.create(SetMacMapAclInput)
Modifier and Type | Method and Description |
---|---|
static SetMacMapAclTask |
create(SetMacMapAclInput input)
Construct a new task that configures the access control list in the
MAC mapping.
|
SetMacMapAclOutput |
createOutput(VtnUpdateType result)
Generate the output of the RPC request.
|
Class<SetMacMapAclOutput> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
protected MacMapChange |
updateConfig(VTNMacMapConfig cfg,
VtnUpdateOperationType op)
Update the MAC mapping configuration.
|
execute
needErrorLog
addBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailure, onSuccess
public static SetMacMapAclTask create(SetMacMapAclInput input) throws RpcException
input
- A SetMacMapAclTask
instance.SetMacMapAclTask
instance associated with the task
that configures the access control list in the MAC mapping.RpcException
- The given input contains invalid value.protected MacMapChange updateConfig(VTNMacMapConfig cfg, VtnUpdateOperationType op) throws RpcException
updateConfig
in class UpdateMacMapTask
cfg
- The current MAC mapping configuration.op
- A VtnUpdateOperationType
instance that specifies
how to update the configuration.MacMapChange
instance if the configuration was
chaged. null
if not changed.RpcException
- Failed to update the configuration.public Class<SetMacMapAclOutput> getOutputType()
getOutputType
in interface RpcOutputGenerator<VtnUpdateType,SetMacMapAclOutput>
public SetMacMapAclOutput createOutput(VtnUpdateType result)
createOutput
in interface RpcOutputGenerator<VtnUpdateType,SetMacMapAclOutput>
result
- The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.