<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Which YANG Models Support On-Change Telemetry in Code Exchange</title>
    <link>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4994228#M76</link>
    <description>&lt;P&gt;&lt;SPAN&gt;So if i understand this, while "mdt-cap-notif-config" and "mdt-cap-notif-state" indicate the router supports notifications,&lt;/SPAN&gt;&lt;SPAN&gt; the individual data points within this xpath might not support on-change updates.&lt;/SPAN&gt;&amp;nbsp; So the on-change-is-valid" set to [null] for all data points, meaning the individual data points under&amp;nbsp;/interfaces-ios-xe-oper:interfaces/interface&amp;nbsp;might not individually support&amp;nbsp;on-change&amp;nbsp;updates.&amp;nbsp;They might only support&amp;nbsp;sample-based updates at pre-determined intervals.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 09:59:05 GMT</pubDate>
    <dc:creator>bigevilbeard</dc:creator>
    <dc:date>2024-01-11T09:59:05Z</dc:date>
    <item>
      <title>Which YANG Models Support On-Change Telemetry</title>
      <link>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4986237#M70</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with NETCONF/RESTCONF and MDT (TIG Stack) on the&amp;nbsp;&lt;SPAN&gt;IOS XE on Cat8kv reservable sandbox&lt;/SPAN&gt;.&amp;nbsp; I have not been able to figure out how to stream interface state via on-change.&amp;nbsp; For reference, I am using the basic ietf-interfaces.yang model.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, the subscription only becomes valid if it's set to periodic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the YANG-modeled mdt subscription I am trying to make work:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    "Cisco-IOS-XE-mdt-cfg:mdt-subscription": [&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            "subscription-id": "69",&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            "base": {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                "stream": "yang-push",&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                "encoding": "encode-kvgpb",&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                "dampening period": "0",&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                "xpath": "/ietf-interfaces:interfaces-state/interface[name='Loopback69']/oper-status"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            },&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            "mdt-receivers": {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                "address": "10.10.20.50",&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                "port": "57500",&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                "protocol": "grpc-tcp"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            }&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        }&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    ]&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;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.&amp;nbsp; Is this just a case of ietf-interfaces.yang not supporting on-change, or am I configuring this incorrectly?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 23:59:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4986237#M70</guid>
      <dc:creator>slarrarte</dc:creator>
      <dc:date>2023-12-27T23:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Which YANG Models Support On-Change Telemetry</title>
      <link>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4986377#M71</link>
      <description>&lt;P&gt;From what i recall in the c&lt;SPAN&gt;isco-ios-xe-mdt-capabilities-oper.YANG model this can be queried to show information about the models that support `on-change` subscriptions and the transports ("NETCONF",&amp;nbsp;"gRPC",&amp;nbsp;"HTTP").&amp;nbsp;The response will contain a list of supported models and their capabilities,&amp;nbsp;including, s&lt;/SPAN&gt;upported subscription modes:, whether a model supports "ON_CHANGE" subscriptions.&lt;/P&gt;&lt;P&gt;If you did a GET using NETCONF you should get a capabilities Information of this....&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&amp;gt;
  &amp;lt;get&amp;gt;
    &amp;lt;filter&amp;gt;
      &amp;lt;mdt-capabilities-oper xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-mdt-capabilities-oper"&amp;gt;
      &amp;lt;/mdt-capabilities-oper&amp;gt;
    &amp;lt;/filter&amp;gt;
  &amp;lt;/get&amp;gt;
&amp;lt;/rpc&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;There is a bit more on this here ---&amp;gt;&amp;nbsp;&lt;A href="https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/1711/b_1711_programmability_cg/m_1711_prog_ietf_telemetry.html#Cisco_Concept.dita_37229c82-8ddf-410d-a2ac-0d71b28ccf01" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/1711/b_1711_programmability_cg/m_1711_prog_ietf_telemetry.html#Cisco_Concept.dita_37229c82-8ddf-410d-a2ac-0d71b28ccf01&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There is a also a good section here --&amp;gt;&amp;nbsp;&lt;A href="https://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-xe-17/217427-configure-model-driven-telemetry-on-cisc.html#anc37" target="_blank"&gt;https://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-xe-17/217427-configure-model-driven-telemetry-on-cisc.html#anc37&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a good example by&lt;SPAN&gt;Jeremy Cohoe --&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/jeremycohoe/cisco-ios-xe-mdt/blob/master/c9300-grpc-onchange-examples.cfg" target="_blank"&gt;https://github.com/jeremycohoe/cisco-ios-xe-mdt/blob/master/c9300-grpc-onchange-examples.cfg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now, the next question is if this will work in the devnet sandbox? I am guessing you are using the devbox/jump host as the listener and not a external resource?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps in some way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 11:11:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4986377#M71</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2023-12-28T11:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Which YANG Models Support On-Change Telemetry</title>
      <link>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4993244#M74</link>
      <description>&lt;P&gt;Thank you for your help bigevilbeard,&lt;/P&gt;&lt;P&gt;I will be GETing the the MDT capabilities model from the router to see what models support on-change.&lt;/P&gt;&lt;P&gt;You are correct in assuming I am using the devnet sandbox environment.&amp;nbsp; More specifically, I have been using the IOS XE reservable sandbox and running code from my personal computer.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 02:21:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4993244#M74</guid>
      <dc:creator>slarrarte</dc:creator>
      <dc:date>2024-01-10T02:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Which YANG Models Support On-Change Telemetry</title>
      <link>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4993990#M75</link>
      <description>&lt;P&gt;Below is a snippet of the router's reply after GETing&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Cisco-IOS-XE-mdt-capabilities-oper:mdt-capabilities-oper-data&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; "index": 16,&lt;BR /&gt;&amp;nbsp; "sub-caps": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "on-change-is-valid": [null],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "on-change-supported": "mdt-cap-notif-config mdt-cap-notif-state"&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "xpath": "/interfaces-ios-xe-oper:interfaces/interface"&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I chose that snippet because the xpath pertaining to it is what I kinda want to set to make on-change updates.&amp;nbsp; What would be the indicator that I can create an on-change subscription?&amp;nbsp; Every single&amp;nbsp;"on-change-is-valid" value is set to [null].&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 22:49:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4993990#M75</guid>
      <dc:creator>slarrarte</dc:creator>
      <dc:date>2024-01-10T22:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Which YANG Models Support On-Change Telemetry</title>
      <link>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4994228#M76</link>
      <description>&lt;P&gt;&lt;SPAN&gt;So if i understand this, while "mdt-cap-notif-config" and "mdt-cap-notif-state" indicate the router supports notifications,&lt;/SPAN&gt;&lt;SPAN&gt; the individual data points within this xpath might not support on-change updates.&lt;/SPAN&gt;&amp;nbsp; So the on-change-is-valid" set to [null] for all data points, meaning the individual data points under&amp;nbsp;/interfaces-ios-xe-oper:interfaces/interface&amp;nbsp;might not individually support&amp;nbsp;on-change&amp;nbsp;updates.&amp;nbsp;They might only support&amp;nbsp;sample-based updates at pre-determined intervals.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 09:59:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4994228#M76</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-01-11T09:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Which YANG Models Support On-Change Telemetry</title>
      <link>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4996097#M77</link>
      <description>&lt;P&gt;I was under this impression too, but what has me skeptical is that not a single "on-change is valid" is not set to [null].&amp;nbsp; Perhaps this is a limitation on the sandbox environment.&amp;nbsp; Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 15:39:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4996097#M77</guid>
      <dc:creator>slarrarte</dc:creator>
      <dc:date>2024-01-13T15:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Which YANG Models Support On-Change Telemetry</title>
      <link>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4996101#M78</link>
      <description>&lt;P&gt;Sure thing, does the data return back to you machine over the VPN, i was not sure if this was possible, i saw some hacks with this ages back?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 15:54:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4996101#M78</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-01-13T15:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Which YANG Models Support On-Change Telemetry</title>
      <link>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4996111#M79</link>
      <description>&lt;P&gt;Yes, you can directly interact with the sandbox nodes from your computer via VPN.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 16:28:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/code-exchange/which-yang-models-support-on-change-telemetry/m-p/4996111#M79</guid>
      <dc:creator>slarrarte</dc:creator>
      <dc:date>2024-01-13T16:28:41Z</dc:date>
    </item>
  </channel>
</rss>

