commit | a2795f6deca483271875450e99d4a5906fb4f6d0 | [log] [tgz] |
---|---|---|
author | Andrea Campanella <andrea@opennetworking.org> | Mon Oct 23 15:46:36 2017 +0200 |
committer | Ray Milkey <ray@opennetworking.org> | Mon Oct 30 17:46:40 2017 -0700 |
tree | 476aa7891c249345b61bde8a15affce2b18ea632 | |
parent | e3e18deec34f105165ace124a2740cab60672b09 [diff] |
Fixing Netconf Subscription session reopen Change-Id: I908b75f7c2a697451d0c876684db5abc5a2d1c36
diff --git a/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java b/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java index 6d30314..c619e5d 100644 --- a/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java +++ b/protocols/netconf/ctl/src/main/java/org/onosproject/netconf/ctl/impl/NetconfSessionMinaImpl.java
@@ -400,6 +400,8 @@ log.debug("Trying to reopen the channel with {}", deviceInfo.getDeviceId()); cleanUp(); openChannel(); + } else { + return; } if (subscriptionConnected) { log.debug("Restarting subscription with {}", deviceInfo.getDeviceId());