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 |
protected static byte |
SIG_SUBTYPE |
protected static byte |
TIMESTAMP_SUBTYPE |
chassisId, ethType, optionalTLVList, PORT_TLV_COMPONENT_SUBTYPE, PORT_TLV_INTERFACE_NAME_SUBTYPE, PORT_TLV_SIZE, PORT_TLV_SUBTYPE, PORT_TLV_TYPE, portId, ttl, TTL_TLV_SIZE
parent, payload
Constructor and Description |
---|
ONOSLLDP(byte... subtype) |
Modifier and Type | Method and Description |
---|---|
MacAddress |
getChassisIdByMac() |
String |
getDeviceString() |
LLDPOrganizationalTLV |
getDeviceTLV() |
String |
getDomainString() |
LLDPOrganizationalTLV |
getDomainTLV()
Gets the TLV associated with remote probing.
|
String |
getNameString() |
LLDPOrganizationalTLV |
getNameTLV() |
Integer |
getPort() |
String |
getPortDescString() |
LLDPTLV |
getPortDescTLV() |
String |
getPortNameString() |
byte[] |
getSig() |
LLDPOrganizationalTLV |
getSigTLV() |
long |
getTimestamp() |
LLDPOrganizationalTLV |
getTimestampTLV() |
short |
getTtlBySeconds() |
static ONOSLLDP |
onosLLDP(String deviceId,
ChassisId chassisId,
int portNum)
Deprecated.
since 1.15. Insecure, do not use.
|
static ONOSLLDP |
onosLLDP(String deviceId,
ChassisId chassisId,
int portNum,
String portDesc)
Deprecated.
since 1.15. Insecure, do not use.
|
static ONOSLLDP |
onosSecureLLDP(String deviceId,
ChassisId chassisId,
int portNum,
String secret)
Creates a link probe for link discovery/verification.
|
static ONOSLLDP |
onosSecureLLDP(String deviceId,
ChassisId chassisId,
int portNum,
String portDesc,
String secret)
Creates a link probe for link discovery/verification.
|
static ONOSLLDP |
parseLLDP(Ethernet eth)
Given an ethernet packet, returns the device the LLDP came from.
|
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) |
void |
setPortName(String portName) |
void |
setSig(byte[] sig) |
void |
setTimestamp(long timestamp) |
static boolean |
verify(ONOSLLDP probe,
String secret,
long maxDelay) |
addOptionalTLV, deserializer, equals, getChassisId, getOptionalTLVList, getPortId, getTtl, hashCode, serialize, setChassisId, setOptionalTLVList, setPortId, setTtl, toString
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public 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
protected static final byte TIMESTAMP_SUBTYPE
protected static final byte SIG_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 void setPortName(String portName)
public void setTimestamp(long timestamp)
public void setSig(byte[] sig)
public LLDPOrganizationalTLV getNameTLV()
public LLDPOrganizationalTLV getDeviceTLV()
public LLDPOrganizationalTLV getTimestampTLV()
public LLDPOrganizationalTLV getSigTLV()
public LLDPOrganizationalTLV getDomainTLV()
public LLDPTLV getPortDescTLV()
public String getNameString()
public String getDeviceString()
public String getDomainString()
public String getPortDescString()
public Integer getPort()
public String getPortNameString()
public MacAddress getChassisIdByMac()
public short getTtlBySeconds()
public long getTimestamp()
public byte[] getSig()
public static ONOSLLDP parseONOSLLDP(Ethernet eth)
eth
- an ethernet packetpublic static ONOSLLDP parseLLDP(Ethernet eth)
eth
- an ethernet packet@Deprecated public 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 onosSecureLLDP(String deviceId, ChassisId chassisId, int portNum, String secret)
deviceId
- The device ID as a StringchassisId
- The chassis ID of the deviceportNum
- Port number of port to send probe out ofsecret
- LLDP secret@Deprecated public 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 ofpublic static ONOSLLDP onosSecureLLDP(String deviceId, ChassisId chassisId, int portNum, String portDesc, String secret)
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 ofsecret
- LLDP secret