public final class EdgeNodeFlowRemover extends TenantIndexFlowRemover<NodeFlows>
FlowRemover which removes
VTN data flows related to the specified edge network on a switch.
Edge network is specified by a SalNode instance,
a PortFilter instance, and a VLAN ID.
A SalNode instance specifies the target physical switch.
This class scans all VTN data flows related to the specified switch,
and removes data flows if the ingress or egress flow entry meets all
the following conditions.
PortFilter instance.
Note that this method always passes a null as a VtnPort to
PortFilter.
| Constructor and Description |
|---|
EdgeNodeFlowRemover(String tname,
SalNode snode,
PortFilter filter,
int vid)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return a brief description about this flow remover.
|
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NodeFlows> |
getPath(VtnFlowTableKey key)
Return the path to the node flow index.
|
protected boolean |
select(FlowCache fc)
Determine whether the given data flow should be removed or not.
|
getTenantName, removeDataFlowpublic EdgeNodeFlowRemover(String tname, SalNode snode, PortFilter filter, int vid)
tname - The name of the target VTN.snode - A SalNode instance corresponding to the target
switch.filter - A PortFilter instance which selects switch ports.vid - A VLAN ID.protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NodeFlows> getPath(VtnFlowTableKey key)
getPath in class TenantIndexFlowRemover<NodeFlows>key - A VtnFlowTableKey instance which specifies the
target VTN flow table.protected boolean select(FlowCache fc) throws VTNException
select in class TenantIndexFlowRemover<NodeFlows>fc - A FlowCache instance.true if the given data flow should be removed.
Otherwise false.VTNException - An error occurred.public String getDescription()
Copyright © 2018 OpenDaylight. All rights reserved.