Add an explanatory messages around TCP-MD5 16/91516/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 22 Jul 2020 08:33:11 +0000 (10:33 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 22 Jul 2020 08:34:21 +0000 (10:34 +0200)
Just pointing to epoll unavailabality reason is not enough, we
should also explain that the user can get PCEP working without
TCP/MD5 keys.

JIRA: BGPCEP-916
Change-Id: I95d5d087f99a29a6d823041e40a841b2f0367be8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/PCEPDispatcherImpl.java

index 618608b54176dfcd940504a9f7c749eb1614c3f3..9f2694c0828cbed8d336dd670737c9fa59d0fb1c 100644 (file)
@@ -120,7 +120,8 @@ public class PCEPDispatcherImpl implements PCEPDispatcher, Closeable {
             if (Epoll.isAvailable()) {
                 b.option(EpollChannelOption.TCP_MD5SIG, this.keys);
             } else {
-                throw new UnsupportedOperationException(Epoll.unavailabilityCause().getCause());
+                throw new UnsupportedOperationException("Setting TCP-MD5 signatures is not supported",
+                        Epoll.unavailabilityCause().getCause());
             }
         }