NECONF-524 : Setting the netconf keepalive logic to be more proactive. 85/68285/5
authorBalaji Varadaraju <bvaradar@luminanetworks.com>
Thu, 15 Feb 2018 07:53:20 +0000 (01:53 -0600)
committerBalaji Varadaraju <bvaradar@luminanetworks.com>
Wed, 11 Jul 2018 02:12:05 +0000 (21:12 -0500)
commit0c9207b1edb531a643db63efdd5b4e0bf4517a62
tree09888197aadde2681d318e74405e71df3e4d9ac7
parent6706306c7894fc7400934768ef86fb55a46e1b87
NECONF-524 : Setting the netconf keepalive logic to be more proactive.

https://jira.opendaylight.org/browse/NETCONF-524

When a NETCONF device loses connection with the controller in exceptional
conditions such as the management interface going down, underlying TCP
connection would not be closed as there will be no fin packet exchange or
reset. At this point NETCONF state will be set as connected until the
underlying OS determines the connection is stale which can happen after
considerable amount of time. This fix makes the Keepalive packets more
proactive to determine such conditions.This fix also sets the listener
properly which is required for this fix as well.

Change-Id: I781469ae7865e949e9f2c55e53240341f0b10bdd
Signed-off-by: Balaji Varadaraju <bvaradar@luminanetworks.com>
netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/RemoteDeviceConnectorImpl.java
netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/AbstractNetconfTopology.java
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/listener/NetconfDeviceCommunicator.java
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/KeepaliveSalFacade.java