Class LLDPDiscoveryUtils
java.lang.Object
org.opendaylight.openflowplugin.applications.topology.lldp.utils.LLDPDiscoveryUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final short
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
getValueForLLDPPacketIntegrityEnsuring
(NodeConnectorId nodeConnectorId) Gets an extra authenticator for lldp security.static boolean
isEntityOwned
(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService eos, String nodeId) static NodeConnectorRef
lldpToNodeConnectorRef
(byte[] payload) Returns the encoded in custom TLV for the given lldp.static NodeConnectorRef
lldpToNodeConnectorRef
(byte[] payload, boolean useExtraAuthenticatorCheck) Returns the encoded in custom TLV for the given lldp.static LinkDiscovered
toLLDPLinkDiscovered
(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link link)
-
Field Details
-
ETHERNET_TYPE_VLAN
public static final short ETHERNET_TYPE_VLAN- See Also:
-
ETHERNET_TYPE_LLDP
public static final short ETHERNET_TYPE_LLDP- See Also:
-
-
Method Details
-
lldpToNodeConnectorRef
Returns the encoded in custom TLV for the given lldp.- Parameters:
payload
- lldp payload- Returns:
- nodeConnectorId - encoded in custom TLV of given lldp
- See Also:
-
lldpToNodeConnectorRef
public static NodeConnectorRef lldpToNodeConnectorRef(byte[] payload, boolean useExtraAuthenticatorCheck) Returns the encoded in custom TLV for the given lldp.- Parameters:
payload
- lldp payloaduseExtraAuthenticatorCheck
- make it more secure (CVE-2015-1611 CVE-2015-1612)- Returns:
- nodeConnectorId - encoded in custom TLV of given lldp
-
getValueForLLDPPacketIntegrityEnsuring
Gets an extra authenticator for lldp security.- Parameters:
nodeConnectorId
- the NodeConnectorId- Returns:
- extra authenticator for lldp security
-
isEntityOwned
public static boolean isEntityOwned(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService eos, String nodeId) -
toLLDPLinkDiscovered
public static LinkDiscovered toLLDPLinkDiscovered(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link link)
-