| Modifier and Type | Field and Description |
|---|---|
static byte[] |
BDDP_MULTICAST |
static String |
DEFAULT_DEVICE |
static String |
DEFAULT_NAME |
protected static byte |
DEVICE_SUBTYPE |
protected static byte |
DOMAIN_SUBTYPE |
static byte[] |
LLDP_MULTICAST |
static byte[] |
LLDP_NICIRA |
protected static byte |
NAME_SUBTYPE |
static byte[] |
ONLAB_OUI |
chassisId, ethType, optionalTLVList, portId, ttl, TTL_TLV_SIZEparent, payload| Constructor and Description |
|---|
ONOSLLDP(byte... subtype) |
| Modifier and Type | Method and Description |
|---|---|
static ONOSLLDP |
fingerprintedLLDP(String deviceId,
ChassisId chassisId,
int portNum,
String domainId)
Creates a link probe carrying a fingerprint unique to the ONOS cluster managing
link discovery/verification.
|
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 |
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) |
deserialize, deserializer, equals, getChassisId, getOptionalTLVList, getPortId, getTtl, hashCode, serialize, setChassisId, setOptionalTLVList, setPortId, setTtl, toStringclone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final byte[] ONLAB_OUI
public static final String DEFAULT_DEVICE
public static final String DEFAULT_NAME
public static final byte[] LLDP_NICIRA
public static final byte[] LLDP_MULTICAST
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(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 fingerprintedLLDP(String deviceId, ChassisId chassisId, int portNum, String domainId)
deviceId - The device ID as a StringchassisId - The chassis ID of the deviceportNum - Port number of port to send probe out ofdomainId - The cluster's fingerprintCopyright © 2016. All rights reserved.