| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DEVICE |
static String |
DEFAULT_NAME |
protected static byte |
DEVICE_SUBTYPE |
protected static byte |
DOMAIN_SUBTYPE |
protected static byte |
NAME_SUBTYPE |
chassisId, ethType, optionalTLVList, PORT_TLV_SIZE, portId, ttl, TTL_TLV_SIZEparent, payload| Constructor and Description |
|---|
ONOSLLDP(byte... subtype) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDeviceString() |
LLDPOrganizationalTLV |
getDeviceTLV() |
String |
getDomainString() |
LLDPOrganizationalTLV |
getDomainTLV()
Gets the TLV associated with remote probing.
|
String |
getNameString() |
LLDPOrganizationalTLV |
getNameTLV() |
Integer |
getPort() |
static ONOSLLDP |
onosLLDP(String deviceId,
ChassisId chassisId,
int portNum)
Creates a link probe for link discovery/verification.
|
static ONOSLLDP |
onosLLDP(String deviceId,
ChassisId chassisId,
int portNum,
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(String device) |
void |
setDomainInfo(String domainId) |
void |
setName(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 String DEFAULT_DEVICE
public static final String DEFAULT_NAME
protected static final byte NAME_SUBTYPE
protected static final byte DEVICE_SUBTYPE
protected static final byte DOMAIN_SUBTYPE
public void setName(String name)
public void setDevice(String device)
public void setDomainInfo(String domainId)
public void setChassisId(ChassisId chassisId)
public void setPortId(int portNumber)
public LLDPOrganizationalTLV getNameTLV()
public LLDPOrganizationalTLV getDeviceTLV()
public LLDPOrganizationalTLV getDomainTLV()
public String getNameString()
public String getDeviceString()
public String getDomainString()
public Integer getPort()
public static ONOSLLDP parseONOSLLDP(Ethernet eth)
eth - an ethernet packetpublic static ONOSLLDP onosLLDP(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(String deviceId, ChassisId chassisId, int portNum, 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