public final class ClearVlanMapTask extends AbstractRpcTask<List<RemoveVlanMapResult>> implements RpcOutputGenerator<List<RemoveVlanMapResult>,RemoveVlanMapOutput>
ClearVlanMapTask
describes the MD-SAL datastore transaction task
that removes all the VLAN mappings configured in the specified vBridge.Modifier and Type | Method and Description |
---|---|
RemoveVlanMapOutput |
createOutput(List<RemoveVlanMapResult> result)
Generate the output of the RPC request.
|
protected List<RemoveVlanMapResult> |
execute(TxContext ctx)
Clear all the VLAN mappings configured in the specified vBridge.
|
Class<RemoveVlanMapOutput> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
needErrorLog
addBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onFailure, onSuccess
protected List<RemoveVlanMapResult> execute(TxContext ctx) throws VTNException
execute
in class AbstractTxTask<List<RemoveVlanMapResult>>
ctx
- A runtime context for transaction task.RemoveVlanMapResult
instances that indicates
removed VLAN mappings.
null
if no VLAN mapping is configured in the specified
vBridge.VTNException
- An error occurred.public Class<RemoveVlanMapOutput> getOutputType()
getOutputType
in interface RpcOutputGenerator<List<RemoveVlanMapResult>,RemoveVlanMapOutput>
public RemoveVlanMapOutput createOutput(List<RemoveVlanMapResult> result)
createOutput
in interface RpcOutputGenerator<List<RemoveVlanMapResult>,RemoveVlanMapOutput>
result
- The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.