Controller ignores switch, if no ports are present 94/3594/2
authorAlessandro Boch <aboch@cisco.com>
Mon, 9 Dec 2013 21:19:50 +0000 (13:19 -0800)
committerAlessandro Boch <aboch@cisco.com>
Mon, 9 Dec 2013 22:45:41 +0000 (14:45 -0800)
commite297d01f3b85ca6753e607bba5b3e9b441bd6307
tree205008990f88dbe3d39adf9026a0895942da3c18
parent616a88111ea9603f0d6f93c7462e6dab39644fcf
Controller ignores switch, if no ports are present

 - At switch connection, InventoryServiceShim mistakenly skips to
   inform the global listeners if no ports are configured on the switch.
   This is not visible with software switches because they always
   advertise they have the OFLocal port active.
   Being Connection Service a listener of global inventory service,
   it will not get to know about the switch presence, and in subsequent
   queries from InventoryServiceShim it will reply the switch is not
   locally connected to this controller, causing Inventory Shim to
   not inform its upper layer listeners about the switch. Therefore
   no other controller service will get to know the switch is conencted.

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