public final class NewMacEntry extends MacEntry
NewMacEntry describes a new MAC address table entry to be put into
the MD-SAL datastore.MAX_IP_PROBE| Constructor and Description |
|---|
NewMacEntry(EtherAddress eaddr,
SalPort sport,
String pname,
int vid,
IpNetwork ip,
VNodeIdentifier<?> ident)
Construct a new instance to be put into the MD-SAL datastore.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIpAddress(IpNetwork ip)
This method should never be called because the IP address is already
specified by the constructor.
|
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. |
Set<IpNetwork> |
getIpNetworkSet()
Return a set of
IpNetwork instances associated with this
MAC address table entry. |
String |
getMapPath()
Return a string representation of
VNodeIdentifier instance that
specifies the virtual mapping corresponding to this entry. |
MacTableEntry |
getNewEntry()
Return the MAC address table entry to be put into the MD-SAL datastore.
|
void |
setDirty()
This method does nothing because this entry represents a new entry
that is always put into the MD-SAL datastore.
|
getEtherAddress, getPort, getVlanId, hasMoved, needIpProbe, set, toStringpublic NewMacEntry(EtherAddress eaddr, SalPort sport, String pname, int vid, IpNetwork ip, VNodeIdentifier<?> ident)
eaddr - An EtherAddress instance that indicates the
MAC address.sport - A SalPort instance that specifies the switch port
where the MAC address was detected.pname - The name of the port specified by sport.vid - The VLAN ID.ip - An IP address detected inside Ethernet frame where the
MAC address was detected.ident - A VNodeIdentifier that specifies the virtual
mapping that maps the MAC address.public void addIpAddress(IpNetwork ip)
addIpAddress in class MacEntryip - Unused.IllegalStateException - Always thrown.public 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.getIpAddresses in class MacEntryIpAddress instances or null.public Set<IpNetwork> getIpNetworkSet()
IpNetwork instances associated with this
MAC address table entry.getIpNetworkSet in class MacEntryIpNetwork instances.
Note that this method must not return null.public String getMapPath()
VNodeIdentifier instance that
specifies the virtual mapping corresponding to this entry.getMapPath in class MacEntrypublic void setDirty()
public MacTableEntry getNewEntry()
getNewEntry in class MacEntryMacTableEntry instance.Copyright © 2018 OpenDaylight. All rights reserved.