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
Branches
Tags
3 merge requests!90Develop,!88Use SPF Viper for configuration,!53V.0.1.0 Codename Threadbare
...@@ -2,27 +2,15 @@ package main ...@@ -2,27 +2,15 @@ package main
import ( import (
"code.fbi.h-da.de/cocsn/gosdn/nucleus" "code.fbi.h-da.de/cocsn/gosdn/nucleus"
"flag"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )
func main() { 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) log.SetLevel(log.DebugLevel)
// Setup a channel to communicate if goSDN should shutdown. // Setup a channel to communicate if goSDN should shutdown.
IsRunningChannel := make(chan bool) IsRunningChannel := make(chan bool)
// hand off to cmd for further processing // hand off to cmd for further processing
nucleus.StartAndRun(cliSocket, *configFileName, IsRunningChannel) nucleus.StartAndRun(IsRunningChannel)
// nothing to see here, please move on!
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment