Fix DeviceOp DTCL 81/82181/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:07:42 +0000 (10:07 +0200)
commit79780fe1e3a77fff43dbef9e7b901d8236bba2b9
tree1f26370b015c4e24f1848913bf83ec7227ee4762
parent78843ccca75741317191f8c4f27c35846ac73f11
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