Deploy and verify model-driven telemetry

5.3.d i Configure on-change subscription using gRPC

google Remote Procedure Call

General information on “Model-driven telemetry (MDT) on-change subscription using gRPC”:

“Model-driven telemetry on-change subscription using gRPC” CLI configuration commands:

## Mandatory MDT on-change subscription w/ gRPC
Router(config)# telemetry ietf subscription <id>
Router(config-mdt-subs)# encoding encode-kvgpb
Router(config-mdt-subs)# stream yang-push
Router(config-mdt-subs)# update-policy on-change
Router(config-mdt-subs)# receiver ip address <ip> <port> protocol grpc-tcp

## Optional MDT on-change subscription w/ gRPC
Router(config-mdt-subs)# filter xpath <xpath-filter>

“Model-driven telemetry on-change subscription using gRPC” CLI show commands:

## Show specific MDT subscription parameters
Router# show telemetry ietf subscription <id>

## Show all configured MDT subscriptions
Router# show telemetry ietf subscription <all>

MDT configuration using JSON (URI: /restconf/data/Cisco-IOS-XE-mdt-cfg:mdt-config-data):

{
    "mdt-subscription": [
        {
            "subscription-id": "<id>",
            "base": {
                "stream": "yang-push",
                "encoding": "encode-kvgpb",
                "no-synch-on-start": false,
                "xpath": "<filter>"
            },
            "mdt-receivers": [
                {
                    "address": "<ip>",
                    "port": "<port>",
                    "protocol": "grpc-tcp"
                }
            ]
        }
    ]
}