X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-client%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Fclient%2FNetconfClientSessionNegotiator.java;h=100b98c15af18e1791dc4c43fcc460189ee4384e;hb=607df672b92e06f36723397481408a257c98564e;hp=3340dde883f09cfb077c6c1dcc6b6ea1b0ca8592;hpb=38dbf4451a20bee38ccb5a9c685dcf9fa9d6fb33;p=controller.git diff --git a/opendaylight/netconf/netconf-client/src/main/java/org/opendaylight/controller/netconf/client/NetconfClientSessionNegotiator.java b/opendaylight/netconf/netconf-client/src/main/java/org/opendaylight/controller/netconf/client/NetconfClientSessionNegotiator.java index 3340dde883..100b98c15a 100644 --- a/opendaylight/netconf/netconf-client/src/main/java/org/opendaylight/controller/netconf/client/NetconfClientSessionNegotiator.java +++ b/opendaylight/netconf/netconf-client/src/main/java/org/opendaylight/controller/netconf/client/NetconfClientSessionNegotiator.java @@ -34,8 +34,9 @@ public class NetconfClientSessionNegotiator extends AbstractNetconfSessionNegotiator { protected NetconfClientSessionNegotiator(NetconfSessionPreferences sessionPreferences, - Promise promise, Channel channel, Timer timer, SessionListener sessionListener) { - super(sessionPreferences, promise, channel, timer, sessionListener); + Promise promise, Channel channel, Timer timer, SessionListener sessionListener, + long connectionTimeoutMillis) { + super(sessionPreferences, promise, channel, timer, sessionListener, connectionTimeoutMillis); } private static Collection getCapabilities(Document doc) { @@ -48,7 +49,8 @@ public class NetconfClientSessionNegotiator extends @Nullable @Override public String apply(@Nullable XmlElement input) { - return input.getTextContent(); + // Trim possible leading/tailing whitespace + return input.getTextContent().trim(); } }); }