Prevent ssh hang during shutdown 68/79268/5
authorTomas Cere <tomas.cere@pantheon.tech>
Mon, 7 Jan 2019 10:21:09 +0000 (11:21 +0100)
committerTomas Cere <tomas.cere@pantheon.tech>
Mon, 7 Jan 2019 11:11:17 +0000 (12:11 +0100)
commite7f9ea2cd02cc8ffb743cff4d07ba7068d1e7c73
tree74605581bcd41d0366caf7949d58e7bfbc8742af
parent1cac8ca66fa56a7f143de6d9618cb5b8a47cc484
Prevent ssh hang during shutdown

Add a reference listener for netty executor service provided by blueprint
so we can close ssh servers while the bundle still exists. This prevents
the hang seen during shutdown since the executor was being shutdown before
the mdsal-netconf-ssh.

JIRA: NETCONF-577
Change-Id: I062c9e8afb349817435ea0b1dde796a54ebb22d2
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
netconf/mdsal-netconf-ssh/pom.xml
netconf/mdsal-netconf-ssh/src/main/resources/org/opendaylight/blueprint/netconf-ssh.xml
netconf/netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/NetconfNorthboundSshServer.java