Implement md-sal datastore into netconf test-tool
[controller.git] / opendaylight / netconf / netconf-testtool / src / main / java / org / opendaylight / controller / netconf / test / tool / Main.java
index e273254e0ed3bc8520cdcaf910957b982958f3b9..a6bbe40286421a52d7c9015d489b004e70c2d217 100644 (file)
@@ -80,6 +80,9 @@ public final class Main {
         @Arg(dest = "notification-file")
         public File notificationFile;
 
+        @Arg(dest = "md-sal")
+        public boolean mdSal;
+
         static ArgumentParser getParser() {
             final ArgumentParser parser = ArgumentParsers.newArgumentParser("netconf testool");
 
@@ -149,6 +152,12 @@ public final class Main {
                     .help("Whether to use debug log level instead of INFO")
                     .dest("debug");
 
+            parser.addArgument("--md-sal")
+                    .type(Boolean.class)
+                    .setDefault(false)
+                    .help("Whether to use md-sal datastore instead of default simulated datastore.")
+                    .dest("md-sal");
+
             return parser;
         }