Hello,
I am working with NETCONF/RESTCONF and MDT (TIG Stack) on the IOS XE on Cat8kv reservable sandbox. I have not been able to figure out how to stream interface state via on-change. For reference, I am using the basic ietf-interfaces.yang model.
So far, the subscription only becomes valid if it's set to periodic.
Here is the YANG-modeled mdt subscription I am trying to make work:
{
"Cisco-IOS-XE-mdt-cfg:mdt-subscription": [
{
"subscription-id": "69",
"base": {
"stream": "yang-push",
"encoding": "encode-kvgpb",
"dampening period": "0",
"xpath": "/ietf-interfaces:interfaces-state/interface[name='Loopback69']/oper-status"
},
"mdt-receivers": {
"address": "10.10.20.50",
"port": "57500",
"protocol": "grpc-tcp"
}
}
]
}
I am aware that not all YANG models support on-change, and there doesn't seem to be any indicator of what models support it. Is this just a case of ietf-interfaces.yang not supporting on-change, or am I configuring this incorrectly?