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
4626f567
Commit
4626f567
authored
2 years ago
by
Fabian Seidl
Committed by
Malte Bauch
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
renamed GetAllCore
parent
d5ed0b7a
No related branches found
No related tags found
1 merge request
!468
Resolve "PND related operations via NBI are located in CoreServer"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controller/api/grpc.go
+4
-4
4 additions, 4 deletions
controller/api/grpc.go
with
4 additions
and
4 deletions
controller/api/grpc.go
+
4
−
4
View file @
4626f567
...
...
@@ -23,7 +23,7 @@ func init() {
// Init initialises the CLI client.
func
Init
(
ctx
context
.
Context
,
addr
string
)
error
{
resp
,
err
:=
GetAll
Core
(
ctx
,
addr
)
resp
,
err
:=
GetAll
Pnds
(
ctx
,
addr
)
if
err
!=
nil
{
return
err
}
...
...
@@ -39,15 +39,15 @@ func Init(ctx context.Context, addr string) error {
// GetIds requests all UUID information from the controller.
func
GetIds
(
ctx
context
.
Context
,
addr
string
)
([]
*
ppb
.
PrincipalNetworkDomain
,
error
)
{
resp
,
err
:=
GetAll
Core
(
ctx
,
addr
)
resp
,
err
:=
GetAll
Pnds
(
ctx
,
addr
)
if
err
!=
nil
{
return
nil
,
err
}
return
resp
.
Pnd
,
nil
}
// GetAll
Core
requests all PNDs.
func
GetAll
Core
(
ctx
context
.
Context
,
addr
string
)
(
*
ppb
.
GetPndListResponse
,
error
)
{
// GetAll
Pnds
requests all PNDs.
func
GetAll
Pnds
(
ctx
context
.
Context
,
addr
string
)
(
*
ppb
.
GetPndListResponse
,
error
)
{
pndClient
,
err
:=
nbi
.
PndClient
(
addr
,
dialOptions
...
)
if
err
!=
nil
{
return
nil
,
err
...
...
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