BUG-9079 Make PCEP session recoverable from exception 13/63513/5
authorKevin Wang <kevixw@gmail.com>
Wed, 30 Aug 2017 22:46:39 +0000 (15:46 -0700)
committerClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Tue, 24 Oct 2017 14:40:33 +0000 (14:40 +0000)
commitfe5f547a35daaf3dc75887e5c9db31a0aaa1b9a9
treea6382c2f72c9a8cb5228d4acdd20f79b540ad223
parent76d764be26757fa5e192fd9649345eb249b3558f
BUG-9079 Make PCEP session recoverable from exception

This patch makes PCEP session recoverable from any netty exception.
Whenever an exception happens, PCEP session will be closed. So it
will be at a clean state when the next session retry comes.

Change-Id: I38a983c44519fd5c12cb9cd0da09fa14c4177ac7
Signed-off-by: Kevin Wang <kevixw@gmail.com>
(cherry picked from commit 004a235ef03cf72dd39e91a2085fa94fd5c1c80d)
pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/PCEPSessionImpl.java
pcep/impl/src/test/java/org/opendaylight/protocol/pcep/impl/PCEPSessionImplTest.java
pcep/impl/src/test/java/org/opendaylight/protocol/pcep/impl/SimpleSessionListener.java