Skip to content
Snippets Groups Projects

Resolve "Add an option to send gNMI Subscribe requests via SBI"

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -86,8 +86,8 @@ func (d *DeviceWatcher) callSubscribe(stopContext context.Context, pndID string,
gNMIOptionsCtx := context.Background()
gNMIOptionsCtx = context.WithValue(gNMIOptionsCtx, types.CtxKeyOpts, opts)
// device ID and name are passed to the internal subscribe to check in which device
// a problem occurs in case of an error
// SubscriptionInformation conatins pnd ID, device ID and name to be used in the internal subscribe to check
// from which device a response or a problem occurs in case of an error
if err := device.Transport().SubscribeInternal(gNMIOptionsCtx, handleSubscribeResponse, &transport.SubscriptionInformation{
PndID: pndID,
DeviceID: device.ID().String(),
Loading