public final class PortFlowRemover extends IndexFlowRemover<PortFlows,RemovedPortFlows>
FlowRemover which removes
VTN data flows related to the specified switch port.
This flow remover affects flow entries in all the VTNs.
| Constructor and Description |
|---|
PortFlowRemover(SalPort sport)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(RemovedPortFlows removed,
FlowCache fc)
Invoked when the given data flow has been removed.
|
String |
getDescription()
Return a brief description about this flow remover.
|
SalPort |
getFlowPort()
Return the target switch port.
|
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<PortFlows> |
getPath(VtnFlowTableKey key)
Return the path to the port flow index to be removed.
|
RemovedPortFlows |
removeDataFlow(TxContext ctx)
Remove VTN data flows from the MD-SAL datastore.
|
removepublic SalPort getFlowPort()
SalPort instance whcih specifies the target switch
port.protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<PortFlows> getPath(VtnFlowTableKey key)
getPath in class IndexFlowRemover<PortFlows,RemovedPortFlows>key - A VtnFlowTableKey instance which specifies the
target VTN flow table.protected void add(RemovedPortFlows removed, FlowCache fc)
add in class IndexFlowRemover<PortFlows,RemovedPortFlows>removed - A RemovedFlows instance to store flow entries
to be removed.fc - A FlowCache instance which contains VTN data
flow to be removed.public RemovedPortFlows removeDataFlow(TxContext ctx) throws VTNException
ctx - A runtime context for transaction task.RemovedFlows instance which represents removed flow
entries.VTNException - An error occurred.public String getDescription()
Copyright © 2018 OpenDaylight. All rights reserved.