Modifier and Type | Field and Description |
---|---|
static byte[] |
BDDP_MULTICAST
Deprecated.
in Kingfisher. Use MacAddress.BROADCASAT instead.
|
static java.lang.String |
DEFAULT_DEVICE |
static java.lang.String |
DEFAULT_NAME |
protected static byte |
DEVICE_SUBTYPE |
protected static byte |
DOMAIN_SUBTYPE |
static byte[] |
LLDP_ONLAB
Deprecated.
in Kingfisher. Use MacAddress.ONOS_LLDP instead.
|
protected static byte |
NAME_SUBTYPE |
static byte[] |
ONLAB_OUI
Deprecated.
in Kingfisher. Use MacAddress.ONOS.oui() instead.
|
chassisId, ethType, optionalTLVList, portId, ttl, TTL_TLV_SIZE
parent, payload
Constructor and Description |
---|
ONOSLLDP(byte... subtype) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDeviceString() |
LLDPOrganizationalTLV |
getDeviceTLV() |
java.lang.String |
getDomainString() |
LLDPOrganizationalTLV |
getDomainTLV()
Gets the TLV associated with remote probing.
|
java.lang.String |
getNameString() |
LLDPOrganizationalTLV |
getNameTLV() |
java.lang.Integer |
getPort() |
static ONOSLLDP |
onosLLDP(java.lang.String deviceId,
ChassisId chassisId,
int portNum)
Creates a link probe for link discovery/verification.
|
static ONOSLLDP |
parseONOSLLDP(Ethernet eth)
Given an ethernet packet, determines if this is an LLDP from
ONOS and returns the device the LLDP came from.
|
void |
setChassisId(ChassisId chassisId) |
void |
setDevice(java.lang.String device) |
void |
setDomainInfo(java.lang.String domainId) |
void |
setName(java.lang.String name) |
void |
setPortId(int portNumber) |
deserializer, equals, getChassisId, getOptionalTLVList, getPortId, getTtl, hashCode, serialize, setChassisId, setOptionalTLVList, setPortId, setTtl, toString
clone, getParent, getPayload, resetChecksum, setParent, setPayload
@Deprecated public static final byte[] ONLAB_OUI
public static final java.lang.String DEFAULT_DEVICE
public static final java.lang.String DEFAULT_NAME
@Deprecated public static final byte[] LLDP_ONLAB
@Deprecated public static final byte[] BDDP_MULTICAST
protected static final byte NAME_SUBTYPE
protected static final byte DEVICE_SUBTYPE
protected static final byte DOMAIN_SUBTYPE
public void setName(java.lang.String name)
public void setDevice(java.lang.String device)
public void setDomainInfo(java.lang.String domainId)
public void setChassisId(ChassisId chassisId)
public void setPortId(int portNumber)
public LLDPOrganizationalTLV getNameTLV()
public LLDPOrganizationalTLV getDeviceTLV()
public LLDPOrganizationalTLV getDomainTLV()
public java.lang.String getNameString()
public java.lang.String getDeviceString()
public java.lang.String getDomainString()
public java.lang.Integer getPort()
public static ONOSLLDP parseONOSLLDP(Ethernet eth)
eth
- an ethernet packetpublic static ONOSLLDP onosLLDP(java.lang.String deviceId, ChassisId chassisId, int portNum)
deviceId
- The device ID as a StringchassisId
- The chassis ID of the deviceportNum
- Port number of port to send probe out of