Topology discovery is broken in Active/Active controllers 26/526/1
authorAlessandro Boch <aboch@cisco.com>
Thu, 27 Jun 2013 00:25:55 +0000 (17:25 -0700)
committerAlessandro Boch <aboch@cisco.com>
Thu, 27 Jun 2013 00:25:55 +0000 (17:25 -0700)
commitc7388fec7184e926b4f6c446cedfbc6dd0bb6895
tree35156dd5c4b5382beb5ebd2981d952b2859d1f82
parent586e8148730acc468c1d82cbac370f51c4c11681
Topology discovery is broken in Active/Active controllers

    ISSUE: Edges which endpoints are managed by different controllers cannot be discovered
           This happens because Discovery discards LLDP frames coming from non-local node connectors
    CHANGES:
    - in processDiscoveryPacket():
      + do not discard LLDP frames coming in from non-local node connectors
      + after discovering an edge, put it in the timeout map (pendingMap) keyed by the incoming port (tail node connector)
    - in doDiscovery():
      + do not add local node connectors to the timeout map (pendingMap)
        This map now contains the time (ticks) elapsed since last LLDP frame was received on the respective node connector.
    - Some style and minor static analysis fix changes

Signed-off-by: Alessandro Boch <aboch@cisco.com>
opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/DiscoveryService.java