public abstract class MacEntry extends Object
MacEntry describes a MAC address learned in the MAC address table
associated with vBridge.| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_IP_PROBE
The maximum number of IP address probe request.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MacEntry(EtherAddress eaddr,
SalPort sport,
int vid)
Construct a new instance.
|
protected |
MacEntry(EtherAddress eaddr,
SalPort sport,
int vid,
int probe)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addIpAddress(IpNetwork ip)
Associate the given IP address with this MAC address table entry.
|
EtherAddress |
getEtherAddress()
Return the MAC address.
|
abstract List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> |
getIpAddresses()
Return a list of
IpAddress instances associated with this
MAC address table entry. |
abstract Set<IpNetwork> |
getIpNetworkSet()
Return a set of
IpNetwork instances associated with this
MAC address table entry. |
abstract String |
getMapPath()
Return a string representation of
VNodeIdentifier instance that
specifies the virtual mapping corresponding to this entry. |
abstract MacTableEntry |
getNewEntry()
Return the MAC address table entry to be put into the MD-SAL datastore.
|
SalPort |
getPort()
Return the physical switch port where the MAC address was detected.
|
int |
getVlanId()
Return the VLAN ID configured in the MAC address table entry.
|
boolean |
hasMoved(SalPort sport,
int vid,
VNodeIdentifier<?> mpath)
Determine whether the host corresponding to this MAC address table
entry has moved or not.
|
boolean |
needIpProbe()
Determine whether a probe request for IP address should be sent or not.
|
protected MacTableEntryBuilder |
set(MacTableEntryBuilder builder)
Set values in this instance into the given builder instance.
|
abstract void |
setDirty()
Turn the dirty flag on so that this entry is put into the MD-SAL
datastore.
|
String |
toString()
Return a string representation of this instance.
|
public static final int MAX_IP_PROBE
protected MacEntry(EtherAddress eaddr, SalPort sport, int vid)
eaddr - An EtherAddress instance that indicates the
MAC address.sport - A SalPort instance that specifies the switch port
where the MAC address was detected.vid - The VLAN ID.protected MacEntry(EtherAddress eaddr, SalPort sport, int vid, int probe)
eaddr - An EtherAddress instance that indicates the
MAC address.sport - A SalPort instance that specifies the switch port
where the MAC address was detected.vid - The VLAN ID.probe - The number of IP address probe request.public final EtherAddress getEtherAddress()
EtherAddress instance.public final SalPort getPort()
SalPort instance that specifies the physical switch
port.public final int getVlanId()
public final boolean hasMoved(SalPort sport, int vid, VNodeIdentifier<?> mpath)
sport - A SalPort instance expected to be configured
in this entry.vid - A VLAN ID expected to be configured in this entry.mpath - A VNodeIdentifier instance expected to be
configured in this entry.true if the host corresponding to this instance has
moved. false otherwise.public final boolean needIpProbe()
true if a probe request for IP address should be sent.
false otherwise.protected final MacTableEntryBuilder set(MacTableEntryBuilder builder)
builder - A MacTableEntryBuilder instance.builder is always returned.public abstract void addIpAddress(IpNetwork ip)
ip - An IpNetwork instance.public abstract List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> getIpAddresses()
IpAddress instances associated with this
MAC address table entry.IpAddress instances or null.public abstract Set<IpNetwork> getIpNetworkSet()
IpNetwork instances associated with this
MAC address table entry.IpNetwork instances.
Note that this method must not return null.public abstract String getMapPath()
VNodeIdentifier instance that
specifies the virtual mapping corresponding to this entry.public abstract void setDirty()
public abstract MacTableEntry getNewEntry()
MacTableEntry instance if this entry needs to be put
into the MD-SAL datastore. null otherwise.Copyright © 2018 OpenDaylight. All rights reserved.