Fixed issue with connection-info->{local-ip,local-port} not being stored 44/19444/1
authorEd Warnicke <hagbard@gmail.com>
Fri, 1 May 2015 17:58:52 +0000 (10:58 -0700)
committerEd Warnicke <hagbard@gmail.com>
Fri, 1 May 2015 17:58:52 +0000 (10:58 -0700)
commit6aac07547080487c19509fe02537348c57d0a110
treeaf6845329dac5b1b9bc42ee2462b9a943b5fdcad
parentf5c7cce3e285cf6552571ef6257cb6568846c552
Fixed issue with connection-info->{local-ip,local-port} not being stored

Use of ConnectionInfo as a key in OvsdbConnectionManager
should only have remote{Ip,port} info... so:

1)  Introduced a method suppressLocalIpPort() to SouthboundMapper
    to strip localIp/Port info out of a ConnectionInfo if needed
2)  Insured that *all* gets to the clients map in OvsdbConnectionManager
    use that method before doing a lookup
3)  Insured that *all* puts to the clients map in OvsdbConnectionManager
    use that method before writing.

Also in passing fixed disconnect to just get the connectionInfo from
the ovsdbNode it has, instead of doing a convoluted dance and
removed the then no longer used createConnectionInfo(ovsdbNode) from
SouthboundMapper.

Change-Id: Idb2b16d52ec23267584c69c6e474652dd25a4ab0
Signed-off-by: Ed Warnicke <hagbard@gmail.com>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/SouthboundMapper.java