diff --git a/cmd/gosdn/main.go b/cmd/gosdn/main.go index 7555cd65a66a644d0bdafef8e15a01257b239814..2ba0f61f0edc703b9306dbcc3e733b9900e8912a 100644 --- a/cmd/gosdn/main.go +++ b/cmd/gosdn/main.go @@ -2,27 +2,15 @@ package main import ( "code.fbi.h-da.de/cocsn/gosdn/nucleus" - "flag" log "github.com/sirupsen/logrus" ) func main() { - - // register our supported flags - cliListenAddr := flag.String("cli-listen-addr", "", "The IP address of the grpcCLI.") - cliListenPort := flag.String("cli-server-port", "55055", "The port number of the grpcCLI") - configFileName := flag.String("config-file", "", "Path to the config file") - - flag.Parse() - cliSocket := *cliListenAddr + ":" + *cliListenPort - log.SetLevel(log.DebugLevel) // Setup a channel to communicate if goSDN should shutdown. IsRunningChannel := make(chan bool) // hand off to cmd for further processing - nucleus.StartAndRun(cliSocket, *configFileName, IsRunningChannel) - - // nothing to see here, please move on! + nucleus.StartAndRun(IsRunningChannel) }