Package org.onlab.packet
Class ONOSLLDP
- java.lang.Object
- 
- org.onlab.packet.BasePacket
- 
- org.onlab.packet.LLDP
- 
- org.onlab.packet.ONOSLLDP
 
 
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_DEVICEstatic StringDEFAULT_NAMEprotected static byteDEVICE_SUBTYPEprotected static byteDOMAIN_SUBTYPEprotected static byteNAME_SUBTYPEprotected static byteSIG_SUBTYPEprotected static byteTIMESTAMP_SUBTYPE- 
Fields inherited from class org.onlab.packet.LLDPchassisId, ethType, optionalTLVList, PORT_TLV_COMPONENT_SUBTYPE, PORT_TLV_INTERFACE_NAME_SUBTYPE, PORT_TLV_SIZE, PORT_TLV_TYPE, portId, ttl, TTL_TLV_SIZE
 - 
Fields inherited from class org.onlab.packet.BasePacketparent, payload
 
- 
 - 
Constructor SummaryConstructors Constructor Description ONOSLLDP(byte... subtype)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MacAddressgetChassisIdByMac()StringgetDeviceString()LLDPOrganizationalTLVgetDeviceTLV()StringgetDomainString()LLDPOrganizationalTLVgetDomainTLV()Gets the TLV associated with remote probing.StringgetNameString()LLDPOrganizationalTLVgetNameTLV()IntegergetPort()StringgetPortDescString()LLDPTLVgetPortDescTLV()StringgetPortNameString()byte[]getSig()LLDPOrganizationalTLVgetSigTLV()longgetTimestamp()LLDPOrganizationalTLVgetTimestampTLV()shortgetTtlBySeconds()static ONOSLLDPonosLLDP(String deviceId, ChassisId chassisId, int portNum)Deprecated.since 1.15.static ONOSLLDPonosLLDP(String deviceId, ChassisId chassisId, int portNum, String portDesc)Deprecated.since 1.15.static ONOSLLDPonosSecureLLDP(String deviceId, ChassisId chassisId, int portNum, String secret)Creates a link probe for link discovery/verification.static ONOSLLDPonosSecureLLDP(String deviceId, ChassisId chassisId, int portNum, String portDesc, String secret)Creates a link probe for link discovery/verification.static ONOSLLDPparseLLDP(Ethernet eth)Given an ethernet packet, returns the device the LLDP came from.static ONOSLLDPparseONOSLLDP(Ethernet eth)Given an ethernet packet, determines if this is an LLDP from ONOS and returns the device the LLDP came from.voidsetChassisId(ChassisId chassisId)voidsetDevice(String device)voidsetDomainInfo(String domainId)voidsetName(String name)voidsetPortId(int portNumber)voidsetPortName(String portName)voidsetSig(byte[] sig)voidsetTimestamp(long timestamp)static booleanverify(ONOSLLDP probe, String secret, long maxDelay)- 
Methods inherited from class org.onlab.packet.LLDPaddOptionalTLV, deserializer, equals, getChassisId, getOptionalTLVList, getPortId, getTtl, hashCode, serialize, setChassisId, setOptionalTLVList, setPortId, setTtl, toString
 - 
Methods inherited from class org.onlab.packet.BasePacketclone, getParent, getPayload, resetChecksum, setParent, setPayload
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_DEVICEpublic static final String DEFAULT_DEVICE - See Also:
- Constant Field Values
 
 - 
DEFAULT_NAMEpublic static final String DEFAULT_NAME - See Also:
- Constant Field Values
 
 - 
NAME_SUBTYPEprotected static final byte NAME_SUBTYPE - See Also:
- Constant Field Values
 
 - 
DEVICE_SUBTYPEprotected static final byte DEVICE_SUBTYPE - See Also:
- Constant Field Values
 
 - 
DOMAIN_SUBTYPEprotected static final byte DOMAIN_SUBTYPE - See Also:
- Constant Field Values
 
 - 
TIMESTAMP_SUBTYPEprotected static final byte TIMESTAMP_SUBTYPE - See Also:
- Constant Field Values
 
 - 
SIG_SUBTYPEprotected static final byte SIG_SUBTYPE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setNamepublic void setName(String name) 
 - 
setDevicepublic void setDevice(String device) 
 - 
setDomainInfopublic void setDomainInfo(String domainId) 
 - 
setChassisIdpublic void setChassisId(ChassisId chassisId) 
 - 
setPortIdpublic void setPortId(int portNumber) 
 - 
setPortNamepublic void setPortName(String portName) 
 - 
setTimestamppublic void setTimestamp(long timestamp) 
 - 
setSigpublic void setSig(byte[] sig) 
 - 
getNameTLVpublic LLDPOrganizationalTLV getNameTLV() 
 - 
getDeviceTLVpublic LLDPOrganizationalTLV getDeviceTLV() 
 - 
getTimestampTLVpublic LLDPOrganizationalTLV getTimestampTLV() 
 - 
getSigTLVpublic LLDPOrganizationalTLV getSigTLV() 
 - 
getDomainTLVpublic LLDPOrganizationalTLV getDomainTLV() Gets the TLV associated with remote probing. This TLV will be null if remote probing is disabled.- Returns:
- A TLV containing domain ID, or null.
 
 - 
getPortDescTLVpublic LLDPTLV getPortDescTLV() 
 - 
getNameStringpublic String getNameString() 
 - 
getDeviceStringpublic String getDeviceString() 
 - 
getDomainStringpublic String getDomainString() 
 - 
getPortDescStringpublic String getPortDescString() 
 - 
getPortpublic Integer getPort() 
 - 
getPortNameStringpublic String getPortNameString() 
 - 
getChassisIdByMacpublic MacAddress getChassisIdByMac() 
 - 
getTtlBySecondspublic short getTtlBySeconds() 
 - 
getTimestamppublic long getTimestamp() 
 - 
getSigpublic byte[] getSig() 
 - 
parseONOSLLDPpublic 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.- Parameters:
- eth- an ethernet packet
- Returns:
- a the lldp packet or null
 
 - 
parseLLDPpublic static ONOSLLDP parseLLDP(Ethernet eth) Given an ethernet packet, returns the device the LLDP came from.- Parameters:
- eth- an ethernet packet
- Returns:
- a the lldp packet or null
 
 - 
onosLLDP@Deprecated public static ONOSLLDP onosLLDP(String deviceId, ChassisId chassisId, int portNum) Deprecated.since 1.15. Insecure, do not use.Creates a link probe for link discovery/verification.- Parameters:
- deviceId- The device ID as a String
- chassisId- The chassis ID of the device
- portNum- Port number of port to send probe out of
- Returns:
- ONOSLLDP probe message
 
 - 
onosSecureLLDPpublic static ONOSLLDP onosSecureLLDP(String deviceId, ChassisId chassisId, int portNum, String secret) Creates a link probe for link discovery/verification.- Parameters:
- deviceId- The device ID as a String
- chassisId- The chassis ID of the device
- portNum- Port number of port to send probe out of
- secret- LLDP secret
- Returns:
- ONOSLLDP probe message
 
 - 
onosLLDP@Deprecated public static ONOSLLDP onosLLDP(String deviceId, ChassisId chassisId, int portNum, String portDesc) Deprecated.since 1.15. Insecure, do not use.Creates a link probe for link discovery/verification.- Parameters:
- deviceId- The device ID as a String
- chassisId- The chassis ID of the device
- portNum- Port number of port to send probe out of
- portDesc- Port description of port to send probe out of
- Returns:
- ONOSLLDP probe message
 
 - 
onosSecureLLDPpublic static ONOSLLDP onosSecureLLDP(String deviceId, ChassisId chassisId, int portNum, String portDesc, String secret) Creates a link probe for link discovery/verification.- Parameters:
- deviceId- The device ID as a String
- chassisId- The chassis ID of the device
- portNum- Port number of port to send probe out of
- portDesc- Port description of port to send probe out of
- secret- LLDP secret
- Returns:
- ONOSLLDP probe message
 
 
- 
 
-