Class LLDPDiscoveryUtils
- java.lang.Object
-
- org.opendaylight.openflowplugin.applications.topology.lldp.utils.LLDPDiscoveryUtils
-
public final class LLDPDiscoveryUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static short
ETHERNET_TYPE_LLDP
static short
ETHERNET_TYPE_VLAN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
getValueForLLDPPacketIntegrityEnsuring(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)
Gets an extra authenticator for lldp security.static boolean
isEntityOwned(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService eos, String nodeId)
static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef
lldpToNodeConnectorRef(byte[] payload)
Returns the encoded in custom TLV for the given lldp.static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.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 Detail
-
ETHERNET_TYPE_VLAN
public static final short ETHERNET_TYPE_VLAN
- See Also:
- Constant Field Values
-
ETHERNET_TYPE_LLDP
public static final short ETHERNET_TYPE_LLDP
- See Also:
- Constant Field Values
-
-
Method Detail
-
lldpToNodeConnectorRef
public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef lldpToNodeConnectorRef(byte[] payload)
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(byte[], boolean)
-
lldpToNodeConnectorRef
public static org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.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
public static byte[] getValueForLLDPPacketIntegrityEnsuring(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId nodeConnectorId)
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)
-
-