cisco Model-Driven Telemetry — Service gNMI

Bool sync_response = 3; Error error = 4 [deprecated=true]; } } Only Notification update is supported. Note gNMI sync_response Message A SubscribeResponse message is transmitted by a target (switch or router) to a gNMI client (collector) over an established gNMI Subscribe RPC. The sync_response is a boolean field that is part of the SubscribeResponse response message, which indicates that all data values that corresponds to the paths in the SubscriptionList has been transmitted at least once. The sync_response message is sent after the first update message. This field is enabled for both gNMI on-change and periodic notifications.

The following sample SubscribeResponse message displays the sync_response field: message SubscribeResponse { Notification update = 1; // Changed or sampled value for a path. // Indicate target has sent all values associated with the subscription // at least once. bool sync_response = 3; // Deprecated in favour of google.golang.org/genproto/googleapis/rpc/status Error error = 4 [deprecated = true]; } // Extension messages associated with the SubscribeResponse. See the // gNMI extension specification for further definition.

repeated gnmi_ext.Extension extension = 5; } oneof response { SubscriptionList Message This message is used to indicate a set of paths for which common subscription behavior are required. Within the specification of the SubscriptionList message, the client can identify one or more subscriptions to a given prefix in the model. The following is a SubscriptionList message defintion:

message SubscriptionList { Path prefix = 1; repeated Subscription subscription = 2; bool use_aliases = 3; QOSMarking qos = 4; enum Mode { STREAM = 0; ONCE = 1; POLL = 2; } Mode mode = 5; bool allow_aggregation = 6; repeated ModelData use_models = 7; Encoding encoding = 8; // only JSON_IETF supported in R16.12 Bool updates_only = 9; Model-Driven Telemetry Service gNMI Model-Driven Telemetry 10