public final class MacMapRegistry extends VirtualMapRegistry<MacMapCleaner>
MacMapRegistry describes a context for registering MAC mapping.| Constructor and Description |
|---|
MacMapRegistry(TxContext ctx,
MacMapIdentifier ident,
MacMapChange change)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Apply new configuration for the MAC mapping.
|
protected void |
cleanUpImpl(TxContext ctx)
Clean up the transaction for changing virtual network mapping.
|
addMapCleaner, cleanUp, getContext, getMapCleanerpublic MacMapRegistry(TxContext ctx, MacMapIdentifier ident, MacMapChange change) throws VTNException
ctx - A runtime context for transaction task.ident - The identifier for the target MAC mapping.change - A MacMapChange instance that contains changes
to the MAC mapping configuration.VTNException - An error occurred.public void apply()
throws VTNException
MacMapConflictException - At least one host configured in the allowed host set is already
mapped by the target MAC mapping.VTNException - An error occurred.protected void cleanUpImpl(TxContext ctx) throws VTNException
cleanUpImpl in class VirtualMapRegistry<MacMapCleaner>ctx - A runtime context for transaction task.VTNException - An error occurred.Copyright © 2018 OpenDaylight. All rights reserved.