Use odl hello message capabilities 27/77727/2
authorAnna Puchyova <Anna.Puchyova@pantheon.tech>
Tue, 13 Nov 2018 14:27:36 +0000 (15:27 +0100)
committerAnna Puchyova <Anna.Puchyova@pantheon.tech>
Wed, 14 Nov 2018 14:40:38 +0000 (15:40 +0100)
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 <Anna.Puchyova@pantheon.tech>
netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/AbstractNetconfTopology.java

index 9b057f06195202b444e9f2b19dfdbbbf091564cc..19ba294b2ce67abbd7014648cfb29677da91fec8 100644 (file)
@@ -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)