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
1ef624b2
Commit
1ef624b2
authored
2 years ago
by
Fabian Seidl
Browse files
Options
Downloads
Patches
Plain Diff
updated subscriptions
parent
d504ef53
No related branches found
No related tags found
3 merge requests
!376
Add additional example application hostname-checker
,
!343
Add basic application framework and example application to show interaction between events an NBI
,
!342
Resolve "Add an option to send gNMI Subscribe requests via SBI"
Pipeline
#108555
passed
2 years 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
controller/nucleus/deviceWatcher.go
+2
-2
2 additions, 2 deletions
controller/nucleus/deviceWatcher.go
with
2 additions
and
2 deletions
controller/nucleus/deviceWatcher.go
+
2
−
2
View file @
1ef624b2
...
@@ -86,8 +86,8 @@ func (d *DeviceWatcher) callSubscribe(stopContext context.Context, pndID string,
...
@@ -86,8 +86,8 @@ func (d *DeviceWatcher) callSubscribe(stopContext context.Context, pndID string,
gNMIOptionsCtx
:=
context
.
Background
()
gNMIOptionsCtx
:=
context
.
Background
()
gNMIOptionsCtx
=
context
.
WithValue
(
gNMIOptionsCtx
,
types
.
CtxKeyOpts
,
opts
)
gNMIOptionsCtx
=
context
.
WithValue
(
gNMIOptionsCtx
,
types
.
CtxKeyOpts
,
opts
)
// device ID and name
are pas
sed
to
the internal subscribe to check
in which device
//
SubscriptionInformation conatins pnd ID,
device ID and name
to be u
sed
in
the internal subscribe to check
// a problem occurs in case of an error
//
from which device a response or
a problem occurs in case of an error
if
err
:=
device
.
Transport
()
.
SubscribeInternal
(
gNMIOptionsCtx
,
handleSubscribeResponse
,
&
transport
.
SubscriptionInformation
{
if
err
:=
device
.
Transport
()
.
SubscribeInternal
(
gNMIOptionsCtx
,
handleSubscribeResponse
,
&
transport
.
SubscriptionInformation
{
PndID
:
pndID
,
PndID
:
pndID
,
DeviceID
:
device
.
ID
()
.
String
(),
DeviceID
:
device
.
ID
()
.
String
(),
...
...
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