X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=transportpce.git;a=blobdiff_plain;f=lighty%2Fsrc%2Fmain%2Fjava%2Fio%2Flighty%2Fcontrollers%2Ftpce%2FMain.java;h=9cba68c009e353678721847f44d3f422c18f1df0;hp=7ad45575fb4e009a093299ea3f46dfb81b6e064a;hb=5e3675cf1ce1d119c758cb2d8513be591c1e6b78;hpb=175376aef632d5cc5b0a6526ddc71ac0ce38667e diff --git a/lighty/src/main/java/io/lighty/controllers/tpce/Main.java b/lighty/src/main/java/io/lighty/controllers/tpce/Main.java index 7ad45575f..9cba68c00 100644 --- a/lighty/src/main/java/io/lighty/controllers/tpce/Main.java +++ b/lighty/src/main/java/io/lighty/controllers/tpce/Main.java @@ -102,12 +102,11 @@ public class Main { lightyController.start().get(); // 2. start RestConf server - CommunityRestConfBuilder communityRestConfBuilder = new CommunityRestConfBuilder(); LightyServerBuilder jettyServerBuilder = new LightyServerBuilder( new InetSocketAddress(restConfConfiguration.getInetAddress(), restConfConfiguration.getHttpPort())); - CommunityRestConf communityRestConf = communityRestConfBuilder.from( - RestConfConfigUtils.getRestConfConfiguration(restConfConfiguration, lightyController.getServices())) - .withLightyServer(jettyServerBuilder).build(); + CommunityRestConfBuilder communityRestConfBuilder = CommunityRestConfBuilder.from( + RestConfConfigUtils.getRestConfConfiguration(restConfConfiguration, lightyController.getServices())); + CommunityRestConf communityRestConf = communityRestConfBuilder.withLightyServer(jettyServerBuilder).build(); communityRestConf.start().get(); communityRestConf.startServer(); @@ -115,7 +114,8 @@ public class Main { NetconfSBPlugin netconfSouthboundPlugin; netconfSBPConfiguration = NetconfConfigUtils.injectServicesToTopologyConfig(netconfSBPConfiguration, lightyController.getServices()); - NetconfTopologyPluginBuilder netconfSBPBuilder = new NetconfTopologyPluginBuilder(); + NetconfTopologyPluginBuilder netconfSBPBuilder = new NetconfTopologyPluginBuilder( + lightyController.getServices(), netconfSBPConfiguration); netconfSouthboundPlugin = netconfSBPBuilder.from(netconfSBPConfiguration, lightyController.getServices()) .build(); netconfSouthboundPlugin.start().get();