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
c329e7fa
Commit
c329e7fa
authored
3 years ago
by
Fabian Seidl
Committed by
Malte Bauch
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
added fix for the case that sbi in the received sbi from GetDevice is nil
parent
62a817e3
No related branches found
No related tags found
1 merge request
!248
Resolve "A requested Device via gRPC is missing SBI"
Pipeline
#97263
passed
3 years ago
Stage: build
Stage: test
Stage: analyze
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
northbound/server/pnd.go
+8
-4
8 additions, 4 deletions
northbound/server/pnd.go
with
8 additions
and
4 deletions
northbound/server/pnd.go
+
8
−
4
View file @
c329e7fa
...
@@ -121,14 +121,18 @@ func fillOnds(pnd networkdomain.NetworkDomain, all bool, did ...string) ([]*ppb.
...
@@ -121,14 +121,18 @@ func fillOnds(pnd networkdomain.NetworkDomain, all bool, did ...string) ([]*ppb.
log
.
Error
(
err
)
log
.
Error
(
err
)
return
nil
,
status
.
Errorf
(
codes
.
Aborted
,
"%v"
,
err
)
return
nil
,
status
.
Errorf
(
codes
.
Aborted
,
"%v"
,
err
)
}
}
sbi
:=
spb
.
SouthboundInterface
{}
if
d
.
SBI
()
!=
nil
{
sbi
.
Id
=
d
.
SBI
()
.
ID
()
.
String
()
sbi
.
Type
=
d
.
SBI
()
.
Type
()
}
onds
[
i
]
=
&
ppb
.
OrchestratedNetworkingDevice
{
onds
[
i
]
=
&
ppb
.
OrchestratedNetworkingDevice
{
Id
:
id
,
Id
:
id
,
Name
:
d
.
Name
(),
Name
:
d
.
Name
(),
Device
:
dev
,
Device
:
dev
,
Sbi
:
&
spb
.
SouthboundInterface
{
Sbi
:
&
sbi
,
Id
:
d
.
SBI
()
.
ID
()
.
String
(),
Type
:
d
.
SBI
()
.
Type
(),
},
}
}
}
}
...
...
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