Fix DeviceOp DTCL 80/82180/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 16 May 2019 15:32:36 +0000 (17:32 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 21 May 2019 08:06:55 +0000 (10:06 +0200)
commit534f496b2de0267e2dc60ba1aa657c08142628ea
treea0b56ca29d4ccf80ba036338226db1cb99f8a3f3
parent45550671df11ff4df23dbd4072561b20919df1a2
Fix DeviceOp DTCL

The did not account for the possiblity of null host keys, hence
it incurred NPEs when it was attempting to update its internal
cache.

This also refactor the code so that we share the code path between
DeviceOp and DeviceConfig.

JIRA: NETCONF-615
Change-Id: I1e3329604e1686ee4a79baeea96dc354c49c9e04
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit be977cc2f87dc153beb8542c2924c340848a453a)
netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/CallHomeAuthProviderImpl.java