add updates-only bool to gnmi.SubscriptionList
@@ -293,6 +293,7 @@ func createSubscribeRequest() (*gnmi.SubscribeRequest, error) {
Subscription: subscriptions,
UseModels: models,
Qos: qos,
+ UpdatesOnly: viper.GetBool("updates-only"),
},
},
}, nil
@@ -307,6 +308,7 @@ func createSubscribeRequest() (*gnmi.SubscribeRequest, error) {
Subscription: subscriptions,
//UseModels: models,
Qos: qos,
+ UpdatesOnly: viper.GetBool("updates-only"),
},
},
}, nil
