seba-261
Added dummy mode cmd line switch

Change-Id: Ide8e61bc65e8eb7218bc3b8a7d4cbcc279d7a25a
diff --git a/cmd/AbstractOLT/AbstractOLT.go b/cmd/AbstractOLT/AbstractOLT.go
index 8527ff6..2148cc9 100644
--- a/cmd/AbstractOLT/AbstractOLT.go
+++ b/cmd/AbstractOLT/AbstractOLT.go
@@ -179,8 +179,10 @@
 	logFile := flag.String("log_file", "AbstractOLT.log", "Name of the LogFile to write to")
 	h := flag.Bool("h", false, "Show usage")
 	help := flag.Bool("help", false, "Show usage")
+	dummy := flag.Bool("dummy", false, "Run in dummy mode where YAML is not sent to XOS")
 
 	flag.Parse()
+	settings.SetDummy(*dummy)
 
 	if *help || *h {
 		var usage = `./AbstractOLT -d [default false] : Runs in Debug mode
@@ -204,6 +206,10 @@
 	}
 	log.SetOutput(file)
 	log.SetFlags(log.Ldate | log.Ltime | log.Lmicroseconds | log.Lshortfile)
+	if *dummy {
+		fmt.Println("RUNNING IN DUMMY MODE NO YAML WILL BE SENT TO XOS")
+		log.Println("RUNNING IN DUMMY MODE NO YAML WILL BE SENT TO XOS")
+	}
 	log.Printf("Setting Debug to %t\n", settings.GetDebug())
 	if settings.GetDebug() {
 		log.Println("Startup Params: debug:", *debugPtr, " Authentication:", *useAuthentication, " SSL:", *useSsl, "Cert Directory", *certDirectory,