Class LLDPDiscoveryUtils


  • public final class LLDPDiscoveryUtils
    extends Object
    • Method Detail

      • lldpToNodeConnectorRef

        public static 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 NodeConnectorRef lldpToNodeConnectorRef​(byte[] payload,
                                                              boolean useExtraAuthenticatorCheck)
        Returns the encoded in custom TLV for the given lldp.
        Parameters:
        payload - lldp payload
        useExtraAuthenticatorCheck - make it more secure (CVE-2015-1611 CVE-2015-1612)
        Returns:
        nodeConnectorId - encoded in custom TLV of given lldp
      • getValueForLLDPPacketIntegrityEnsuring

        public static byte[] getValueForLLDPPacketIntegrityEnsuring​(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)