<?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: subtree-filter support with yang-push subscription in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/subtree-filter-support-with-yang-push-subscription/m-p/4751160#M917</link>
    <description>&lt;P&gt;Hi Aurelien&lt;/P&gt;
&lt;P&gt;As this results in MDT sessions, my best guess is, that subtree-filtering is just not supported.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/173/b_173_programmability_cg/model_driven_telemetry.html" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/173/b_173_programmability_cg/model_driven_telemetry.html&lt;/A&gt;&lt;/P&gt;
&lt;H3 id="ariaid-title4" class="title topictitle3"&gt;Restrictions for Model-Driven Telemetry&lt;/H3&gt;
&lt;SECTION class="body conbody"&gt;
&lt;SECTION id="id_86618__d24484e456" class="section"&gt;
&lt;UL class="ul"&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;Automatic hierarchy in selections is not supported for on-change subscriptions when using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="ph i"&gt;yang-push&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;stream. This means that when selecting a list, child lists of the list are not automatically included. For example, the subscriber must manually create a subscription for each child list.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;Checking the authorization of data access is not supported. All the data requested by a subscriber is sent.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;&lt;EM&gt;&lt;STRONG&gt;Subtree filters are not supported. If subtree filters are specified, the subscription is marked as invalid.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;Defining multiple receivers within subscription parameters is not supported; only the first receiver destination is attempted. Other defined receivers are ignored.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Marcel&lt;/P&gt;
&lt;/SECTION&gt;
&lt;/SECTION&gt;</description>
    <pubDate>Mon, 09 Jan 2023 08:37:49 GMT</pubDate>
    <dc:creator>Marcel Zehnder</dc:creator>
    <dc:date>2023-01-09T08:37:49Z</dc:date>
    <item>
      <title>subtree-filter support with yang-push subscription</title>
      <link>https://community.cisco.com/t5/controllers/subtree-filter-support-with-yang-push-subscription/m-p/4751056#M916</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have been trying to get the following rpc command to work without success:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101"&amp;gt;
  &amp;lt;establish-subscription xmlns="urn:ietf:params:xml:ns:yang:ietf-event-notifications"&amp;gt;
    &amp;lt;stream xmlns:yp="urn:ietf:params:xml:ns:yang:ietf-yang-push"&amp;gt;yp:yang-push&amp;lt;/stream&amp;gt;
    &amp;lt;subtree-filter xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-push"&amp;gt;
      &amp;lt;interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"&amp;gt;
        &amp;lt;interface&amp;gt;
          &amp;lt;name/&amp;gt;
          &amp;lt;description/&amp;gt;
        &amp;lt;/interface&amp;gt;
      &amp;lt;/interfaces&amp;gt;
      &amp;lt;interfaces-state xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"&amp;gt;
        &amp;lt;interface&amp;gt;
            &amp;lt;name/&amp;gt;
            &amp;lt;admin-status/&amp;gt;
            &amp;lt;oper-status/&amp;gt;
            &amp;lt;statistics&amp;gt;
                &amp;lt;in-octets/&amp;gt;
                &amp;lt;out-octets/&amp;gt;
            &amp;lt;/statistics&amp;gt;
        &amp;lt;/interface&amp;gt;
      &amp;lt;/interfaces-state&amp;gt;
    &amp;lt;/subtree-filter&amp;gt;
    &amp;lt;period xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-push"&amp;gt;1000&amp;lt;/period&amp;gt;
  &amp;lt;/establish-subscription&amp;gt;
&amp;lt;/rpc&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;It seems subscription fails because of the subtree filter:&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;rpc-error&amp;gt;
  &amp;lt;error-type&amp;gt;protocol&amp;lt;/error-type&amp;gt;
  &amp;lt;error-tag&amp;gt;operation-failed&amp;lt;/error-tag&amp;gt;
  &amp;lt;error-severity&amp;gt;error&amp;lt;/error-severity&amp;gt;
  &amp;lt;error-path xmlns:yp="urn:ietf:params:xml:ns:yang:ietf-yang-push"&amp;gt;/yp:subtree-filter&amp;lt;/error-path&amp;gt;
  &amp;lt;error-message xml:lang="en"&amp;gt;unknown element: interfaces in /notif-bis:establish-subscription/yp:subtree-filter/if:interfaces&amp;lt;/error-message&amp;gt;
  &amp;lt;error-info&amp;gt;
    &amp;lt;bad-element&amp;gt;subtree-filter&amp;lt;/bad-element&amp;gt;
  &amp;lt;/error-info&amp;gt;
&amp;lt;/rpc-error&amp;gt;&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I am running a C8000v (Cisco IOS XE Software, Version 17.09.01a).&lt;/DIV&gt;
&lt;DIV&gt;To be noted that subscriptions with xpath-filter work just fine but xpath feels less natural as it does not match the netconf/yang configuration syntax.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Kindly help me understand how to perform ietf-subscriptions with subtree filters.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt;Aurélien&lt;/DIV&gt;</description>
      <pubDate>Sun, 08 Jan 2023 20:26:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/subtree-filter-support-with-yang-push-subscription/m-p/4751056#M916</guid>
      <dc:creator>aurelien.fasolo</dc:creator>
      <dc:date>2023-01-08T20:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: subtree-filter support with yang-push subscription</title>
      <link>https://community.cisco.com/t5/controllers/subtree-filter-support-with-yang-push-subscription/m-p/4751160#M917</link>
      <description>&lt;P&gt;Hi Aurelien&lt;/P&gt;
&lt;P&gt;As this results in MDT sessions, my best guess is, that subtree-filtering is just not supported.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/173/b_173_programmability_cg/model_driven_telemetry.html" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/173/b_173_programmability_cg/model_driven_telemetry.html&lt;/A&gt;&lt;/P&gt;
&lt;H3 id="ariaid-title4" class="title topictitle3"&gt;Restrictions for Model-Driven Telemetry&lt;/H3&gt;
&lt;SECTION class="body conbody"&gt;
&lt;SECTION id="id_86618__d24484e456" class="section"&gt;
&lt;UL class="ul"&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;Automatic hierarchy in selections is not supported for on-change subscriptions when using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="ph i"&gt;yang-push&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;stream. This means that when selecting a list, child lists of the list are not automatically included. For example, the subscriber must manually create a subscription for each child list.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;Checking the authorization of data access is not supported. All the data requested by a subscriber is sent.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;&lt;EM&gt;&lt;STRONG&gt;Subtree filters are not supported. If subtree filters are specified, the subscription is marked as invalid.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;
&lt;P class="p"&gt;Defining multiple receivers within subscription parameters is not supported; only the first receiver destination is attempted. Other defined receivers are ignored.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Marcel&lt;/P&gt;
&lt;/SECTION&gt;
&lt;/SECTION&gt;</description>
      <pubDate>Mon, 09 Jan 2023 08:37:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/subtree-filter-support-with-yang-push-subscription/m-p/4751160#M917</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-01-09T08:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: subtree-filter support with yang-push subscription</title>
      <link>https://community.cisco.com/t5/controllers/subtree-filter-support-with-yang-push-subscription/m-p/4751297#M918</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/293649"&gt;@Marcel Zehnder&lt;/a&gt;&amp;nbsp;for the quick reply. It is actually kind of a shame that a major vendor such as Cisco does not fully implement RFC.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 12:26:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/subtree-filter-support-with-yang-push-subscription/m-p/4751297#M918</guid>
      <dc:creator>aurelien.fasolo</dc:creator>
      <dc:date>2023-01-09T12:26:29Z</dc:date>
    </item>
  </channel>
</rss>

