public abstract class UpdateMacMapTask extends AbstractRpcTask<VtnUpdateType>
Modifier | Constructor and Description |
---|---|
protected |
UpdateMacMapTask(VBridgeIdentifier vbrId,
VtnUpdateOperationType op)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected VtnUpdateType |
execute(TxContext ctx)
Update the MAC mapping configuration.
|
protected abstract MacMapChange |
updateConfig(VTNMacMapConfig cfg,
VtnUpdateOperationType op)
Update the MAC mapping configuration.
|
needErrorLog
addBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailure, onSuccess
protected UpdateMacMapTask(VBridgeIdentifier vbrId, VtnUpdateOperationType op)
vbrId
- The identifier for the target vBridge.op
- A VtnUpdateOperationType
instance.protected final VtnUpdateType execute(TxContext ctx) throws VTNException
execute
in class AbstractTxTask<VtnUpdateType>
ctx
- MD-SAL datastore transaction context.VtnUpdateType
instance which indicates the result.
null
is returned if the MAC mapping was not changed.VTNException
- An error occurred.protected abstract MacMapChange updateConfig(VTNMacMapConfig cfg, VtnUpdateOperationType op) throws RpcException
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.Copyright © 2018 OpenDaylight. All rights reserved.