public final class VTerminal extends VirtualBridge<Vterminal>
VTerminal describes a configuration and runtime status for a
vTerminal.| Constructor and Description |
|---|
VTerminal(BridgeIdentifier<Vterminal> vtmId)
Construct a new instance.
|
VTerminal(BridgeIdentifier<Vterminal> vtmId,
Vterminal vterm)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(TxContext ctx,
boolean retain)
Destroy the vTerminal.
|
protected PacketContext |
evaluateOutputFilter(PacketContext pctx,
int vid)
This method does nothing because vTerminal does not have flow filter.
|
protected VnodeState |
eventReceived(TxContext ctx,
VtnNodeEvent ev)
Notify virtual mappings in this bridge of node event.
|
protected VnodeState |
eventReceived(TxContext ctx,
VtnPortEvent ev)
Notify virtual mappings in this bridge of port event.
|
protected void |
forward(PacketContext pctx,
VirtualMapNode vnode)
Discard the specified packet because the vTerminal does not forward
any packet.
|
protected org.slf4j.Logger |
getLogger()
Return a logger instance.
|
protected VnodeState |
getMapState(TxContext ctx)
Return the state of the virtual mapping configured to this bridge.
|
VTerminalInterface |
newInterface(VInterfaceIdentifier<Vterminal> ifId,
Vinterface vif)
Construct a new virtual interface instance associated with the interface
inside this vTerminal.
|
VTerminalInterface |
newInterface(VInterfaceIdentifier<Vterminal> ifId,
VtnVinterfaceConfig vifc,
VTNPortMapConfig pmap)
Construct a new virtual interface instance associated with the interface
inside this vTerminal.
|
Vterminal |
resume(TxContext ctx,
XmlLogger xlogger,
XmlVTerminal xvtm)
Resume this vTerminal.
|
broadcastInterfaces, create, destroyInterfaces, forward, getBridgeStatus, getState, hasPathFault, isFilterEmpty, match, match, newBridgeStatus, newBridgeStatus, notifyNode, notifyPort, putState, putState, putState, receive, redirect, resume, routingUpdated, setInterfaceEnabled, submit, traceState, updateState, updateState, updateStategetFlowFilterListgetIdentifier, getInitialValuepublic VTerminal(BridgeIdentifier<Vterminal> vtmId)
This constructor is used to resume runtime status of the virtual bridge on bootstrap.
vtmId - The identifier for the vTerminal.public VTerminal(BridgeIdentifier<Vterminal> vtmId, Vterminal vterm)
vtmId - The identifier for the vTerminal.vterm - A Vterminal instance read from the MD-SAL
datastore.public Vterminal resume(TxContext ctx, XmlLogger xlogger, XmlVTerminal xvtm) throws VTNException
ctx - MD-SAL datastore transaction context.xlogger - A XmlLogger instance.xvtm - A XmlVTerminal instance that contains vTerminal
configuration.Vterminal instance that contains vTerminal
configuration and runtime status.VTNException - An error occurred.public VTerminalInterface newInterface(VInterfaceIdentifier<Vterminal> ifId, Vinterface vif)
newInterface in class VirtualBridge<Vterminal>ifId - The identifier for a new virtual interface.vif - A Vinterface instance read from the MD-SAL
datastore.VTerminalInterface instance.public VTerminalInterface newInterface(VInterfaceIdentifier<Vterminal> ifId, VtnVinterfaceConfig vifc, VTNPortMapConfig pmap)
This method is used to resume runtime status of the virtual interface on bootstrap.
newInterface in class VirtualBridge<Vterminal>ifId - The identifier for a new virtual interface.vifc - Configuration of the virtual interface.pmap - Port mapping configuration.VTerminalInterface instance.public void destroy(TxContext ctx, boolean retain) throws VTNException
destroy in class VirtualBridge<Vterminal>ctx - MD-SAL datastore transaction context.retain - true means that the parent virtual node will be
retained. false means that the parent virtual
node is being destroyed.VTNException - An error occurred.protected VnodeState getMapState(TxContext ctx)
getMapState in class VirtualBridge<Vterminal>ctx - A runtime context for transaction task.VnodeState.UNKNOWN because vTerminal has no
virtual mapping.protected VnodeState eventReceived(TxContext ctx, VtnNodeEvent ev)
eventReceived in class VirtualBridge<Vterminal>ctx - MD-SAL datastore transaction context.ev - A VtnNodeEvent instance.VnodeState.UNKNOWN because vTerminal has no
virtual mapping.protected VnodeState eventReceived(TxContext ctx, VtnPortEvent ev)
eventReceived in class VirtualBridge<Vterminal>ctx - MD-SAL datastore transaction context.ev - A VtnPortEvent instance.VnodeState.UNKNOWN because vTerminal has no
virtual mapping.protected PacketContext evaluateOutputFilter(PacketContext pctx, int vid)
evaluateOutputFilter in class VirtualBridge<Vterminal>pctx - A runtime context for a received packet.vid - Unused.pctx is always returned.protected void forward(PacketContext pctx, VirtualMapNode vnode)
forward in class VirtualBridge<Vterminal>pctx - A runtime context for a received packet.vnode - A VirtualMapNode instance that maps the given
packet.protected org.slf4j.Logger getLogger()
getLogger in class VirtualElement<Vterminal,BridgeIdentifier<Vterminal>>Logger instance.Copyright © 2018 OpenDaylight. All rights reserved.