From 01453202860e97e955753351ca3fe28a063658b9 Mon Sep 17 00:00:00 2001 From: Anna Puchyova Date: Tue, 13 Nov 2018 15:27:36 +0100 Subject: [PATCH 1/1] 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 324ec84727..66eea5692b 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 @@ -516,6 +516,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