Fix DeviceOp DTCL 50/82150/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 16 May 2019 15:32:36 +0000 (17:32 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 16 May 2019 16:14:09 +0000 (18:14 +0200)
commitbe977cc2f87dc153beb8542c2924c340848a453a
tree5b77a043f9f9afe93ec8a01827304123fe952854
parentfc1da2f897386789b0fb9d8c117aad2311da95b0
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>
netconf/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/mount/CallHomeAuthProviderImpl.java