Clean up buildDataForNetconfNode() 21/103621/14
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 6 Dec 2022 23:21:37 +0000 (00:21 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Dec 2022 01:21:24 +0000 (02:21 +0100)
commit0bb41b6c9e87e591dfaef0567f22dc3098494692
treee1efbb311550c6e3c1606106b15def166abd6306
parente6bdcc594cad0a584619c82d3e5b1883c888bbe7
Clean up buildDataForNetconfNode()

This method does not use node or dsType, do not pass them in. Also
inline builders and use ImmutableList for capabilities. As it turns
out we have code duplication here, which we squash as well.

Change-Id: I9bc535ff968a1a017787a65b226f4fc8898cd652
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceTopologyAdapter.java