Class AlivenessProtocolHandlerLLDP

  • All Implemented Interfaces:
    AlivenessProtocolHandler<org.opendaylight.openflowplugin.libraries.liblldp.LLDP>

    @Singleton
    public class AlivenessProtocolHandlerLLDP
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AlivenessProtocolHandlerLLDP​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, AlivenessProtocolHandlerRegistry alivenessProtocolHandlerRegistry, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService packetProcessingService)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getDpnFromNodeConnectorId​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)  
      protected org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceFromOperDS​(java.lang.String interfaceName)  
      protected java.util.Optional<byte[]> getMacAddress​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface interfaceState)  
      java.lang.Class<org.opendaylight.openflowplugin.libraries.liblldp.LLDP> getPacketClass()  
      static java.lang.String getPortNoFromNodeConnectorId​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)  
      java.lang.String getUniqueMonitoringKey​(MonitoringInfo monitorInfo)  
      java.lang.String handlePacketIn​(org.opendaylight.openflowplugin.libraries.liblldp.LLDP lldpPacket, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived packetReceived)  
      Ethernet makeLLDPPacket​(java.lang.String nodeId, long portNum, byte[] srcMac, java.lang.String sourceInterface)  
      void startMonitoringTask​(MonitoringInfo monitorInfo)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlivenessProtocolHandlerLLDP

        @Inject
        public AlivenessProtocolHandlerLLDP​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker,
                                            AlivenessProtocolHandlerRegistry alivenessProtocolHandlerRegistry,
                                            org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService packetProcessingService)
    • Method Detail

      • getPacketClass

        public java.lang.Class<org.opendaylight.openflowplugin.libraries.liblldp.LLDP> getPacketClass()
      • handlePacketIn

        public java.lang.String handlePacketIn​(org.opendaylight.openflowplugin.libraries.liblldp.LLDP lldpPacket,
                                               org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived packetReceived)
      • startMonitoringTask

        public void startMonitoringTask​(MonitoringInfo monitorInfo)
      • getDpnFromNodeConnectorId

        public static java.lang.String getDpnFromNodeConnectorId​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)
      • getPortNoFromNodeConnectorId

        public static java.lang.String getPortNoFromNodeConnectorId​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId portId)
      • makeLLDPPacket

        public Ethernet makeLLDPPacket​(java.lang.String nodeId,
                                       long portNum,
                                       byte[] srcMac,
                                       java.lang.String sourceInterface)
      • getUniqueMonitoringKey

        public java.lang.String getUniqueMonitoringKey​(MonitoringInfo monitorInfo)
      • getInterfaceFromOperDS

        protected org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface getInterfaceFromOperDS​(java.lang.String interfaceName)
                                                                                                                                                throws org.opendaylight.mdsal.common.api.ReadFailedException
        Throws:
        org.opendaylight.mdsal.common.api.ReadFailedException
      • getMacAddress

        protected java.util.Optional<byte[]> getMacAddress​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface interfaceState)