Skip to content
Snippets Groups Projects
Commit e9246fb5 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

include spf13/viper for config

parent 38a7d1fd
No related branches found
No related tags found
3 merge requests!90Develop,!88Use SPF Viper for configuration,!53V.0.1.0 Codename Threadbare
This commit is part of merge request !88. Comments created here will be created in the context of that merge request.
......@@ -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)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment