Skip to content
Snippets Groups Projects
Commit 1ef624b2 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

updated subscriptions

parent d504ef53
No related branches found
No related tags found
3 merge requests!376Add additional example application hostname-checker,!343Add basic application framework and example application to show interaction between events an NBI,!342Resolve "Add an option to send gNMI Subscribe requests via SBI"
Pipeline #108555 passed
This commit is part of merge request !342. Comments created here will be created in the context of that merge request.
...@@ -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 passed to the internal subscribe to check in which device // SubscriptionInformation conatins pnd ID, device ID and name to be used 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(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment