From: Anna Puchyova Date: Tue, 13 Nov 2018 14:27:36 +0000 (+0100) Subject: Use odl hello message capabilities X-Git-Tag: release/fluorine-sr2~27^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=3fac1f5bff4e6bad66217a741655889f0ab36d89;p=netconf.git Use odl hello message capabilities Fill the parameter of odl hello message capabilities into NetconfReconnectingClientConfiguration to be used, when connecting to the device. JIRA: NETCONF-580 Change-Id: I9a4b2b97f335c2db330f0c1c7e86b76c4e2cffae Signed-off-by: Anna Puchyova --- diff --git a/netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/AbstractNetconfTopology.java b/netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/AbstractNetconfTopology.java index 9b057f0619..19ba294b2c 100644 --- a/netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/AbstractNetconfTopology.java +++ b/netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/AbstractNetconfTopology.java @@ -517,6 +517,10 @@ public abstract class AbstractNetconfTopology implements NetconfTopology { } else { throw new IllegalStateException("Unsupported protocol type: " + node.getProtocol().getName().getClass()); } + if (node.getOdlHelloMessageCapabilities() != null) { + reconnectingClientConfigurationBuilder + .withOdlHelloCapabilities(node.getOdlHelloMessageCapabilities().getCapability()); + } return reconnectingClientConfigurationBuilder .withAddress(socketAddress)