public interface VirtualMapNode
VirtualMapNode
determines interfaces to be implemented by virtual
node classes which map the physical network element.Modifier and Type | Method and Description |
---|---|
void |
disableInput(PacketContext pctx)
Install a flow entry that drops every incoming packet.
|
void |
filterPacket(PacketContext pctx,
int vid)
Evaluate flow filters for incoming packet mapped by this virtual
mapping.
|
PacketContext |
filterPacket(PacketContext pctx,
int vid,
VirtualBridge<?> bridge)
Evaluate flow filters for outgoing packet to be transmitted by this
virtual mapping.
|
TenantNodeIdentifier<?,?> |
getIdentifier()
Return the identifier for this node.
|
TenantNodeIdentifier<?,?> |
getIdentifier(EtherAddress eaddr,
int vid)
Return the identifier for the virtual mapping which maps the given host.
|
VNodeHop |
getIngressHop(EtherAddress eaddr,
int vid)
Return a
VNodeHop instance that represents the ingress virtual
node in the virtual packet route. |
boolean |
isEnabled()
Determine whether this virtual mapping is administratively enabled
or not.
|
TenantNodeIdentifier<?,?> getIdentifier()
TenantNodeIdentifier<?,?> getIdentifier(EtherAddress eaddr, int vid)
eaddr
- An EtherAddress
instance that specifies the MAC
address of the mapped host.
null
should be treated as if the mapped host is
not specified.vid
- The VLAN ID of the mapped host.boolean isEnabled()
true
only if this mapping is enabled.VNodeHop getIngressHop(EtherAddress eaddr, int vid)
VNodeHop
instance that represents the ingress virtual
node in the virtual packet route.eaddr
- An EtherAddress
instance that specifies the MAC
address of the mapped host.
null
should be treated as if the mapped host is
not specified.vid
- The VLAN ID of the mapped host.VNodeHop
instance.void disableInput(PacketContext pctx)
pctx
- A runtime context for a received packet.void filterPacket(PacketContext pctx, int vid) throws DropFlowException, RedirectFlowException
pctx
- A runtime context for a received packet.vid
- A VLAN ID to be used for packet matching.
A VLAN ID configured in the given packet is used if a
negative value is specified.DropFlowException
- The given packet was discarded by a flow filter.RedirectFlowException
- The given packet was redirected by a flow filter.PacketContext filterPacket(PacketContext pctx, int vid, VirtualBridge<?> bridge) throws DropFlowException, RedirectFlowException
pctx
- A runtime context for a received packet.vid
- A VLAN ID to be used for packet matching.
A VLAN ID configured in the given packet is used if a
negative value is specified.bridge
- A VirtualBridge
instance associated with this
virtual mapping.PacketContext
to be used for transmitting packet.DropFlowException
- The given packet was discarded by a flow filter.RedirectFlowException
- The given packet was redirected by a flow filter.Copyright © 2018 OpenDaylight. All rights reserved.