summaryrefslogtreecommitdiffstats
path: root/infra/minimal-distribution
diff options
context:
space:
mode:
Diffstat (limited to 'infra/minimal-distribution')
-rw-r--r--infra/minimal-distribution/pom.xml9
-rw-r--r--infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/Main.java31
2 files changed, 7 insertions, 33 deletions
diff --git a/infra/minimal-distribution/pom.xml b/infra/minimal-distribution/pom.xml
index 5278c29e1..d8d1fc3e4 100644
--- a/infra/minimal-distribution/pom.xml
+++ b/infra/minimal-distribution/pom.xml
@@ -37,8 +37,8 @@
io.fd.honeycomb.infra.distro.data.context.ContextPipelineModule,
io.fd.honeycomb.infra.distro.initializer.InitializerPipelineModule,
io.fd.honeycomb.northbound.CredentialsModule,
- io.fd.honeycomb.infra.distro.netconf.NetconfModule,
- io.fd.honeycomb.infra.distro.netconf.NetconfReadersModule,
+ io.fd.honeycomb.northbound.netconf.NetconfModule,
+ io.fd.honeycomb.northbound.netconf.NetconfReadersModule,
io.fd.honeycomb.northbound.restconf.RestconfModule,
io.fd.honeycomb.infra.distro.cfgattrs.CfgAttrsModule,
// io.fd.honeycomb.infra.bgp.BgpModule,
@@ -75,6 +75,11 @@
</dependency>
<dependency>
<groupId>io.fd.honeycomb.northbound</groupId>
+ <artifactId>netconf</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>io.fd.honeycomb.northbound</groupId>
<artifactId>bgp</artifactId>
<version>${project.version}</version>
</dependency>
diff --git a/infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/Main.java b/infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/Main.java
index 165227f21..359667f25 100644
--- a/infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/Main.java
+++ b/infra/minimal-distribution/src/main/java/io/fd/honeycomb/infra/distro/Main.java
@@ -30,13 +30,7 @@ import io.fd.honeycomb.data.init.DataTreeInitializer;
import io.fd.honeycomb.data.init.InitializerRegistry;
import io.fd.honeycomb.infra.distro.activation.ActivationModule;
import io.fd.honeycomb.infra.distro.activation.ActiveModules;
-import io.fd.honeycomb.infra.distro.cfgattrs.HoneycombConfiguration;
import io.fd.honeycomb.infra.distro.initializer.InitializerPipelineModule;
-import io.fd.honeycomb.infra.distro.netconf.HoneycombNotification2NetconfProvider;
-import io.fd.honeycomb.infra.distro.netconf.NetconfModule;
-import io.fd.honeycomb.infra.distro.netconf.NetconfSshServerProvider;
-import io.fd.honeycomb.infra.distro.netconf.NetconfTcpServerProvider;
-import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -64,35 +58,10 @@ public final class Main {
.addAll(createInjector(activationModule).getInstance(ActiveModules.class).createModuleInstances())
.build());
- LOG.info("Honeycomb configuration: {}", injector.getInstance(HoneycombConfiguration.class));
-
// Log all bindings
injector.getAllBindings().entrySet().stream()
.forEach(e -> LOG.trace("Component available under: {} is {}", e.getKey(), e.getValue()));
- final HoneycombConfiguration cfgAttributes = injector.getInstance(HoneycombConfiguration.class);
-
- if (cfgAttributes.isNetconfEnabled()) {
- LOG.info("Starting HONEYCOMB_NETCONF");
- injector.getInstance(Key.get(NetconfOperationServiceFactory.class,
- Names.named(NetconfModule.HONEYCOMB_NETCONF_MAPPER_CORE)));
- injector.getInstance(Key.get(NetconfOperationServiceFactory.class,
- Names.named(NetconfModule.HONEYCOMB_NETCONF_MAPPER_NOTIF)));
- injector.getInstance(Key.get(NetconfOperationServiceFactory.class,
- Names.named(NetconfModule.HONEYCOMB_NETCONF_MAPPER_OPER)));
-
- if (cfgAttributes.isNetconfTcpEnabled()) {
- LOG.info("Starting HONEYCOMB_NETCONF TCP");
- injector.getInstance(NetconfTcpServerProvider.NetconfTcpServer.class);
- }
-
- if (cfgAttributes.isNetconfSshEnabled()) {
- LOG.info("Starting HONEYCOMB_NETCONF SSH");
- injector.getInstance(NetconfSshServerProvider.NetconfSshServer.class);
- }
- injector.getInstance(HoneycombNotification2NetconfProvider.HoneycombNotification2Netconf.class);
- }
-
try {
LOG.info("Initializing configuration");
injector.getInstance(Key.get(InitializerRegistry.class,