Prevent ssh hang during shutdown 70/79270/1
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 12:09:25 +0000 (12:09 +0000)
commit2fb90b5883258c733406b79aa57dbc2f367b7f06
tree3e701c2940d847a76bed20db99408fa5144a11e7
parent6801bfd8661f2a3b9fdd54e263cc8b7a169d1dea
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>
(cherry picked from commit e7f9ea2cd02cc8ffb743cff4d07ba7068d1e7c73)
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