Add E2E testing for testtool
[netconf.git] / netconf / tools / netconf-testtool / src / main / java / org / opendaylight / netconf / test / tool / ScaleUtil.java
index 4d262808d159a07aa1b2dd1885295e9a31ff380a..5a65a5f88741d50ae1a7dd9f4c917e49e1d6fe01 100644 (file)
@@ -68,29 +68,15 @@ public final class ScaleUtil {
                 TimeUnit.MINUTES);
             final Configuration configuration = new ConfigurationBuilder().from(params).build();
             final NetconfDeviceSimulator netconfDeviceSimulator = new NetconfDeviceSimulator(configuration);
-            try {
-                final List<Integer> openDevices = netconfDeviceSimulator.start();
-                if (openDevices.size() == 0) {
-                    root.error("Failed to start any simulated devices, exiting...");
-                    System.exit(1);
-                }
 
-                if (params.distroFolder == null) {
-                    root.error("Distro folder is not set, exiting...");
-                    System.exit(1);
-                }
+            final List<Integer> openDevices = netconfDeviceSimulator.start();
+            if (openDevices.size() == 0) {
+                root.error("Failed to start any simulated devices, exiting...");
+                System.exit(1);
+            }
 
-                final Main.ConfigGenerator configGenerator = new Main.ConfigGenerator(
-                        params.distroFolder, openDevices);
-                final List<File> generated = configGenerator.generate(
-                        params.ssh, params.generateConfigBatchSize,
-                        params.generateConfigsTimeout, params.generateConfigsAddress,
-                        params.devicesPerPort);
-                configGenerator.updateFeatureFile(generated);
-                configGenerator.changeLoadOrder();
-            } catch (final Exception e) {
-                root.error("Unhandled exception", e);
-                netconfDeviceSimulator.close();
+            if (params.distroFolder == null) {
+                root.error("Distro folder is not set, exiting...");
                 System.exit(1);
             }