public final class MacMapCleaner extends Object implements MapCleaner, MacEntryFilter
MapCleaner that purges network resources
superseded by a MAC mapping.| Constructor and Description |
|---|
MacMapCleaner(TxContext ctx,
MacMapIdentifier ident)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(MacTableEntry ment)
Test if the specified MAC address table entry should be accepted or not.
|
void |
addMappedHost(MacVlan mvlan)
Add a L2 host to be added to the target MAC mapping.
|
void |
addUnmappedHost(MacVlan mvlan)
Add a L2 host to be removed from the target MAC mapping.
|
void |
purge(TxContext ctx,
String tname)
Purge caches for the virtual network.
|
public MacMapCleaner(TxContext ctx, MacMapIdentifier ident)
ctx - A runtime context for transaction task.ident - The identifier for the target MAC mapping.public void addMappedHost(MacVlan mvlan)
mvlan - A MacVlan instance which represents a L2 host.public void addUnmappedHost(MacVlan mvlan)
mvlan - A MacVlan instance which represents a L2 host.public void purge(TxContext ctx, String tname) throws VTNException
purge in interface MapCleanerctx - A runtime context for transaction task.tname - The name of the target VTN.VTNException - An error occurred.public boolean accept(MacTableEntry ment) throws VTNException
accept in interface MacEntryFilterment - A MacTableEntry instance to be tested.true if the specified entry should be accepted.
false if the specified entry should be filtered out.VTNException - An error occurred.Copyright © 2018 OpenDaylight. All rights reserved.