public final class VBridgeInterface extends VInterface<Vbridge>
VBridgeInterface describes a configuration and runtime status for a
virtual interface inside vBridge.| Constructor and Description |
|---|
VBridgeInterface(VInterfaceIdentifier<Vbridge> ifId,
Vinterface vif)
Construct a new instance.
|
VBridgeInterface(VInterfaceIdentifier<Vbridge> ifId,
VtnVinterfaceConfig vifc,
VTNPortMapConfig pmap)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.slf4j.Logger |
getLogger()
Return a logger instance.
|
protected void |
purgePortCache(TxContext ctx,
SalPort sport,
int vid)
Purge all the network caches associated with the VLAN specified by
a pair of physical switch port and VLAN ID.
|
create, destroy, disableInput, filterPacket, filterPacket, getIdentifier, getIngressHop, getPortState, getState, getVinterface, getVinterfaceStatus, getVlanId, isEnabled, isFilterEmpty, match, notifyNode, notifyPort, purgeCache, redirect, removePortMap, resume, setEnabled, setPortMap, transmitgetFlowFilterListgetIdentifier, getInitialValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdentifierpublic VBridgeInterface(VInterfaceIdentifier<Vbridge> ifId, VtnVinterfaceConfig vifc, VTNPortMapConfig pmap)
This constructor is used to resume runtime status of the virtual interface on bootstrap.
ifId - The location of the virtual interface.vifc - Configuration of the virtual interface.pmap - Port mapping configuration.public VBridgeInterface(VInterfaceIdentifier<Vbridge> ifId, Vinterface vif)
ifId - The location of the virtual interface.vif - A Vinterface instance read from the MD-SAL
datastore.protected void purgePortCache(TxContext ctx, SalPort sport, int vid) throws VTNException
This method removes all the MAC addresses detected on the specified port from the MAC address table.
purgePortCache in class VInterface<Vbridge>ctx - MD-SAL datastore transaction context.sport - A SalPort instance that specifies the physical
switch port mapped by the port mapping.
Specifying null results in undefined behavior.vid - The VLAN ID specified by the port mapping configuration.VTNException - An error occurred.protected org.slf4j.Logger getLogger()
getLogger in class VirtualElement<Vinterface,VInterfaceIdentifier<Vbridge>>Logger instance.Copyright © 2018 OpenDaylight. All rights reserved.