Class LLDPDiscoveryUtils


  • public final class LLDPDiscoveryUtils
    extends Object
    • Method Detail

      • macToString

        public static String macToString​(byte[] mac)
      • 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 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​(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)