| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_DEVICE |
static java.lang.String |
DEFAULT_NAME |
protected static byte |
DEVICE_SUBTYPE |
protected static byte |
DOMAIN_SUBTYPE |
protected static byte |
NAME_SUBTYPE |
chassisId, ethType, optionalTLVList, portId, ttl, TTL_TLV_SIZEparent, 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 |
onosLLDP(java.lang.String deviceId,
ChassisId chassisId,
int portNum,
java.lang.String portDesc)
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) |
addOptionalTLV, deserializer, equals, getChassisId, getOptionalTLVList, getPortId, getTtl, hashCode, serialize, setChassisId, setOptionalTLVList, setPortId, setTtl, toStringclone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final java.lang.String DEFAULT_DEVICE
public static final java.lang.String DEFAULT_NAME
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 ofpublic static ONOSLLDP onosLLDP(java.lang.String deviceId, ChassisId chassisId, int portNum, java.lang.String portDesc)
deviceId - The device ID as a StringchassisId - The chassis ID of the deviceportNum - Port number of port to send probe out ofportDesc - Port description of port to send probe out of