From abb7dc0724a257ab8bac8f4d523c2ec24186decf Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 1 Feb 2024 00:34:42 +0100 Subject: [PATCH] Remove callhome-server The server/provider split does not make sense here -- we end up with ping-pong through callbacks and whatnot. Bring the thwo parts into a single component, as callhome-server touches topology anyway. While this is not directly tied to the SSL context work, callhome-server is monitoring netconf-keystore, so the lifecycle needs to tied together correctly. JIRA: NETCONF-1243 Change-Id: I75b0b28202a03105169ef675fba7713561eacd68 Signed-off-by: Robert Varga --- apps/callhome-provider/pom.xml | 14 ++++-- ...AbstractCallHomeSessionContextManager.java | 0 .../server/CallHomeSessionContext.java | 0 .../server/CallHomeSessionContextManager.java | 0 .../server/CallHomeStatusRecorder.java | 0 .../CallHomeTransportChannelListener.java | 0 .../server/ssh/CallHomeSshAuthProvider.java | 0 .../server/ssh/CallHomeSshAuthSettings.java | 0 .../server/ssh/CallHomeSshServer.java | 0 .../server/ssh/CallHomeSshSessionContext.java | 0 .../ssh/CallHomeSshSessionContextManager.java | 0 .../server/tls/CallHomeTlsAuthProvider.java | 0 .../server/tls/CallHomeTlsServer.java | 0 .../server/tls/CallHomeTlsSessionContext.java | 0 .../tls/CallHomeTlsSessionContextManager.java | 0 .../server/ssh/CallHomeSshServerTest.java | 0 .../server/tls/CallHomeTlsServerTest.java | 0 artifacts/pom.xml | 16 +++---- netconf/callhome-server/pom.xml | 44 ------------------- netconf/pom.xml | 2 - 20 files changed, 15 insertions(+), 61 deletions(-) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/AbstractCallHomeSessionContextManager.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeSessionContext.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeSessionContextManager.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeStatusRecorder.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeTransportChannelListener.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshAuthProvider.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshAuthSettings.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshServer.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshSessionContext.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshSessionContextManager.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsAuthProvider.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsServer.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContext.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContextManager.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/test/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshServerTest.java (100%) rename {netconf/callhome-server => apps/callhome-provider}/src/test/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsServerTest.java (100%) delete mode 100644 netconf/callhome-server/pom.xml diff --git a/apps/callhome-provider/pom.xml b/apps/callhome-provider/pom.xml index 40418e4cf5..3ae8bbc440 100644 --- a/apps/callhome-provider/pom.xml +++ b/apps/callhome-provider/pom.xml @@ -73,10 +73,6 @@ org.opendaylight.netconf netconf-topology - - org.opendaylight.netconf - callhome-server - org.opendaylight.netconf netconf-client-mdsal @@ -98,11 +94,21 @@ org.osgi.service.metatype.annotations + + org.bouncycastle + bcpkix-jdk18on + test + org.opendaylight.mdsal mdsal-binding-dom-adapter test-jar test + + org.opendaylight.netconf + netconf-server + test + diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/AbstractCallHomeSessionContextManager.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/AbstractCallHomeSessionContextManager.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/AbstractCallHomeSessionContextManager.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/AbstractCallHomeSessionContextManager.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeSessionContext.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeSessionContext.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeSessionContext.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeSessionContext.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeSessionContextManager.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeSessionContextManager.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeSessionContextManager.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeSessionContextManager.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeStatusRecorder.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeStatusRecorder.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeStatusRecorder.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeStatusRecorder.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeTransportChannelListener.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeTransportChannelListener.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeTransportChannelListener.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/CallHomeTransportChannelListener.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshAuthProvider.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshAuthProvider.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshAuthProvider.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshAuthProvider.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshAuthSettings.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshAuthSettings.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshAuthSettings.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshAuthSettings.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshServer.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshServer.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshServer.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshServer.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshSessionContext.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshSessionContext.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshSessionContext.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshSessionContext.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshSessionContextManager.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshSessionContextManager.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshSessionContextManager.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshSessionContextManager.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsAuthProvider.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsAuthProvider.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsAuthProvider.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsAuthProvider.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsServer.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsServer.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsServer.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsServer.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContext.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContext.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContext.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContext.java diff --git a/netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContextManager.java b/apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContextManager.java similarity index 100% rename from netconf/callhome-server/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContextManager.java rename to apps/callhome-provider/src/main/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsSessionContextManager.java diff --git a/netconf/callhome-server/src/test/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshServerTest.java b/apps/callhome-provider/src/test/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshServerTest.java similarity index 100% rename from netconf/callhome-server/src/test/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshServerTest.java rename to apps/callhome-provider/src/test/java/org/opendaylight/netconf/callhome/server/ssh/CallHomeSshServerTest.java diff --git a/netconf/callhome-server/src/test/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsServerTest.java b/apps/callhome-provider/src/test/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsServerTest.java similarity index 100% rename from netconf/callhome-server/src/test/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsServerTest.java rename to apps/callhome-provider/src/test/java/org/opendaylight/netconf/callhome/server/tls/CallHomeTlsServerTest.java diff --git a/artifacts/pom.xml b/artifacts/pom.xml index 6e94b2b69c..78bb91e23e 100644 --- a/artifacts/pom.xml +++ b/artifacts/pom.xml @@ -289,17 +289,6 @@ ${project.version} - - org.opendaylight.netconf - callhome-server - ${project.version} - - - org.opendaylight.netconf - callhome-provider - ${project.version} - - ${project.groupId} netconf-client @@ -309,6 +298,11 @@ + + org.opendaylight.netconf + callhome-provider + ${project.version} + ${project.groupId} netconf-console diff --git a/netconf/callhome-server/pom.xml b/netconf/callhome-server/pom.xml deleted file mode 100644 index fa62f524dc..0000000000 --- a/netconf/callhome-server/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - 4.0.0 - - org.opendaylight.netconf - netconf-parent - 7.0.0-SNAPSHOT - ../../parent - - - callhome-server - ${project.artifactId} - bundle - - - - com.google.guava - guava - - - org.opendaylight.netconf - netconf-client - - - - org.bouncycastle - bcpkix-jdk18on - test - - - org.opendaylight.netconf - netconf-server - test - - - diff --git a/netconf/pom.xml b/netconf/pom.xml index 50bbe1b852..9e5812802a 100644 --- a/netconf/pom.xml +++ b/netconf/pom.xml @@ -34,8 +34,6 @@ yanglib tools - callhome-server - netconf-test-models -- 2.36.6