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
9c3e28a1
Commit
9c3e28a1
authored
1 year ago
by
Fabian Seidl
Browse files
Options
Downloads
Patches
Plain Diff
removed csbi related stuff
parent
b37a109f
No related branches found
No related tags found
1 merge request
!516
Resolve "Remove CSBI stuff from gosdnc"
Pipeline
#160551
passed
1 year ago
Stage: build
Stage: test
Stage: analyze
Stage: integration-test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cli/cmd/networkElementCreate.go
+1
-12
1 addition, 12 deletions
cli/cmd/networkElementCreate.go
with
1 addition
and
12 deletions
cli/cmd/networkElementCreate.go
+
1
−
12
View file @
9c3e28a1
...
...
@@ -36,7 +36,6 @@ import (
"github.com/pterm/pterm"
"github.com/spf13/cobra"
spb
"code.fbi.h-da.de/danet/gosdn/api/go/gosdn/southbound"
tpb
"code.fbi.h-da.de/danet/gosdn/api/go/gosdn/transport"
)
...
...
@@ -65,14 +64,6 @@ if they diverge from the default credentials (user:'admin' and pw:'arista').`,
},
Tls
:
tls
,
}
switch
opcode
{
case
"plugin"
:
opt
.
Type
=
spb
.
Type_TYPE_PLUGIN
case
"csbi"
:
opt
.
Type
=
spb
.
Type_TYPE_CONTAINERISED
default
:
opt
.
Type
=
spb
.
Type_TYPE_OPENCONFIG
}
pluginUUID
,
err
:=
uuid
.
Parse
(
pluginID
)
if
err
!=
nil
{
...
...
@@ -96,13 +87,12 @@ if they diverge from the default credentials (user:'admin' and pw:'arista').`,
// Necessary for prompt mode. The flag variables have to be resetted,
// since in prompt mode the program keeps running.
mneName
,
opcode
,
pluginID
,
address
,
username
,
password
=
""
,
""
,
""
,
""
,
""
,
""
mneName
,
pluginID
,
address
,
username
,
password
=
""
,
""
,
""
,
""
,
""
tls
=
false
},
}
var
mneName
string
var
opcode
string
var
pluginID
string
var
tls
bool
...
...
@@ -110,7 +100,6 @@ func init() {
networkElementCmd
.
AddCommand
(
networkElementCreateCmd
)
networkElementCreateCmd
.
Flags
()
.
StringVar
(
&
mneName
,
"name"
,
""
,
"add a network element name (optional)"
)
//networkElementCreateCmd.Flags().StringVar(&opcode, "type", "", "generation target (csbi or plugin)")
networkElementCreateCmd
.
Flags
()
.
StringVar
(
&
pluginID
,
"plugin-id"
,
""
,
"the plugin ID of the plugin to be used"
)
networkElementCreateCmd
.
Flags
()
.
StringVarP
(
&
address
,
"address"
,
"a"
,
""
,
"address of a gnmi target, e.g. 192.168.1.1:6030"
)
networkElementCreateCmd
.
Flags
()
.
StringVarP
(
&
username
,
"username"
,
"u"
,
""
,
"username for a gnmi resource"
)
...
...
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