<?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 gNMI ‘subscribe’ example in Tools</title>
    <link>https://community.cisco.com/t5/tools/gnmi-subscribe-example/m-p/3907707#M2129</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I'm having some trouble when executing the sample script at&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://ydk.cisco.com/py/docs/api/services/gnmi_service.html#gnmi-service-examples" target="_blank"&gt;http://ydk.cisco.com/py/docs/api/services/gnmi_service.html#gnmi-service-examples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running the script results in the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;File "gnmi-test.py", line 45, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="4"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;pool.map(subscribe, print_telemetry_data)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;File "/usr/lib/python3.5/multiprocessing/pool.py", line 260, in map&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;return self._map_async(func, iterable, mapstar, chunksize).get()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;File "/usr/lib/python3.5/multiprocessing/pool.py", line 343, in _map_async&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;iterable = list(iterable)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;TypeError: 'function' object is not iterable&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The script, while identical, has necessary changes to reflect my environment such as IP, Port, username, and password, along with the YANG path for the repository.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Running python 3.5.2, ubuntu 16.04.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;partial pip list - &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ydk (0.8.3)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ydk-models-cisco-ios-xr (6.6.2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ydk-models-ietf (0.1.5.post2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ydk-models-openconfig (0.1.6.post1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ydk-service-gnmi (0.4.0.post2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Appreciate any guidance and assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;RK&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2019 21:09:29 GMT</pubDate>
    <dc:creator>rkotwani@cisco.com</dc:creator>
    <dc:date>2019-08-13T21:09:29Z</dc:date>
    <item>
      <title>gNMI ‘subscribe’ example</title>
      <link>https://community.cisco.com/t5/tools/gnmi-subscribe-example/m-p/3907707#M2129</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I'm having some trouble when executing the sample script at&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://ydk.cisco.com/py/docs/api/services/gnmi_service.html#gnmi-service-examples" target="_blank"&gt;http://ydk.cisco.com/py/docs/api/services/gnmi_service.html#gnmi-service-examples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running the script results in the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;File "gnmi-test.py", line 45, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT size="4"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;pool.map(subscribe, print_telemetry_data)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;File "/usr/lib/python3.5/multiprocessing/pool.py", line 260, in map&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;return self._map_async(func, iterable, mapstar, chunksize).get()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;File "/usr/lib/python3.5/multiprocessing/pool.py", line 343, in _map_async&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;iterable = list(iterable)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;TypeError: 'function' object is not iterable&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The script, while identical, has necessary changes to reflect my environment such as IP, Port, username, and password, along with the YANG path for the repository.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Running python 3.5.2, ubuntu 16.04.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;partial pip list - &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ydk (0.8.3)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ydk-models-cisco-ios-xr (6.6.2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ydk-models-ietf (0.1.5.post2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ydk-models-openconfig (0.1.6.post1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;ydk-service-gnmi (0.4.0.post2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Appreciate any guidance and assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;RK&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 21:09:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/gnmi-subscribe-example/m-p/3907707#M2129</guid>
      <dc:creator>rkotwani@cisco.com</dc:creator>
      <dc:date>2019-08-13T21:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: gNMI ‘subscribe’ example</title>
      <link>https://community.cisco.com/t5/tools/gnmi-subscribe-example/m-p/3907804#M2130</link>
      <description>&lt;P&gt;Hi Rajesh&lt;/P&gt;
&lt;P&gt;I agree with you. This &lt;A href="http://ydk.cisco.com/py/docs/api/services/gnmi_service.html#gnmi-subscribe-example" target="_self"&gt;example&lt;/A&gt; is not working. I have opened documentation &lt;A href="https://github.com/CiscoDevNet/ydk-gen/issues/948" target="_self"&gt;issue&lt;/A&gt; on GitHub. I will come back to you shortly when the example is fixed.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 01:08:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/gnmi-subscribe-example/m-p/3907804#M2130</guid>
      <dc:creator>ygorelik</dc:creator>
      <dc:date>2019-08-14T01:08:08Z</dc:date>
    </item>
  </channel>
</rss>

