Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
e9246fb5
Commit
e9246fb5
authored
4 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Patches
Plain Diff
include spf13/viper for config
parent
38a7d1fd
Branches
Branches containing commit
Tags
Tags containing commit
3 merge requests
!90
Develop
,
!88
Use SPF Viper for configuration
,
!53
V.0.1.0 Codename Threadbare
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/gosdn/main.go
+1
-13
1 addition, 13 deletions
cmd/gosdn/main.go
with
1 addition
and
13 deletions
cmd/gosdn/main.go
+
1
−
13
View file @
e9246fb5
...
@@ -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!
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment