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
Merge requests
!342
Resolve "Add an option to send gNMI Subscribe requests via SBI"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add an option to send gNMI Subscribe requests via SBI"
227-add-an-option-to-send-gnmi-subscribe-requests-via-sbi
into
develop
Overview
17
Commits
52
Pipelines
52
Changes
5
Merged
Ghost User
requested to merge
227-add-an-option-to-send-gnmi-subscribe-requests-via-sbi
into
develop
2 years ago
Overview
17
Commits
52
Pipelines
52
Changes
5
Expand
Description
#227 (closed)
Edited
2 years ago
by
Ghost User
0
0
Merge request reports
Viewing commit
2e768095
Prev
Next
Show latest version
5 files
+
133
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
2e768095
gNMI sub WIP
· 2e768095
Malte Bauch
authored
2 years ago
cli/adapter/PndAdapter.go
+
8
−
0
Options
@@ -127,6 +127,14 @@ func (p *PndAdapter) Request(ctx context.Context, did uuid.UUID, path string) (*
return
resp
,
nil
}
func
(
p
*
PndAdapter
)
SubscribeONDPath
(
ctx
context
.
Context
,
did
uuid
.
UUID
,
slist
*
ppb
.
SubscriptionList
)
(
ppb
.
PndService_SubscribePathClient
,
error
)
{
resp
,
err
:=
api
.
SubscribePath
(
ctx
,
p
.
endpoint
,
p
.
id
.
String
(),
did
.
String
(),
slist
)
if
err
!=
nil
{
return
nil
,
err
}
return
resp
,
nil
}
// RequestAll sends an API call to the controller requesting the specified path
// for all registered devices. Not yet implemented.
func
(
p
*
PndAdapter
)
RequestAll
(
ctx
context
.
Context
,
path
string
)
([]
proto
.
Message
,
error
)
{
Loading