public final class SetMacMapTask extends UpdateMacMapTask implements RpcOutputGenerator<VtnUpdateType,SetMacMapOutput>
SetMacMapTask
describes the MD-SAL datastore transaction task
that configures a MAC mapping in the specified vBridge.create(SetMacMapInput)
Modifier and Type | Method and Description |
---|---|
static SetMacMapTask |
create(SetMacMapInput input)
Construct a new task that configures a MAC mapping in the specified
vBridge.
|
SetMacMapOutput |
createOutput(VtnUpdateType result)
Generate the output of the RPC request.
|
Class<SetMacMapOutput> |
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 SetMacMapTask create(SetMacMapInput input) throws RpcException
input
- A SetMacMapTask
instance.SetMacMapTask
instance associated with the task
that configures a MAC mapping in the specified vBridge.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<SetMacMapOutput> getOutputType()
getOutputType
in interface RpcOutputGenerator<VtnUpdateType,SetMacMapOutput>
public SetMacMapOutput createOutput(VtnUpdateType result)
createOutput
in interface RpcOutputGenerator<VtnUpdateType,SetMacMapOutput>
result
- The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.