From 3fac1f5bff4e6bad66217a741655889f0ab36d89 Mon Sep 17 00:00:00 2001 From: Anna Puchyova Date: Tue, 13 Nov 2018 15:27:36 +0100 Subject: [PATCH] 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 --- .../netconf/topology/AbstractNetconfTopology.java | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.36.6