<?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 How can I crud-read just specific deep nested class in the YDK hierarchy? in Tools</title>
    <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578018#M3166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My approach when writing some application for reading configuration of device is as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I create root object of the hierarchy. (as en example from Cisco_IOS_XR_infra_syslog_cfg module I create Syslog() )&lt;/LI&gt;&lt;LI&gt;put the object to crud.read method as a parameter&lt;/LI&gt;&lt;LI&gt;iterate / take what is needed from the crud read object output.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So far this worked for me. I hit the wall when I want to take all routes &lt;SPAN style="font-size: 13.3333px;"&gt;(dynamic/static/connected)&lt;/SPAN&gt; and its next hop from Cisco_IOS_XR_ip_rib_ipv4_oper model. My LAB XR has 10 000 routes across several VRFs. When I create the Rib() root object from rib oper model and pass it to crud read method, it takes 10 minutes to take the output. And the output contains lots of information I dont actually need. What I need is just all the routes from all VRFs and its next hops, nothing more. Is it somehow possible to get just these? I tried to go down the &lt;SPAN style="font-size: 13.3333px;"&gt;Cisco_IOS_XR_ip_rib_ipv4_oper&lt;/SPAN&gt; hiearchy and just pass to crud.read the deep nested object (&lt;CODE class="descclassname" style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace; font-size: 14.4px; background-position: initial; color: #000000; font-weight: bold;"&gt;Rib.Vrfs.Vrf.Afs.Af.Safs.Saf.IpRibRouteTableNames.IpRibRouteTableName.Routes.&lt;/CODE&gt;&lt;CODE class="descname" style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace; font-size: 14.4px; background-position: initial; color: #000000; font-weight: bold;"&gt;Route&lt;/CODE&gt;). But I always hit the exception (attachment). Or is there some other approach how to accomplish that the XR device will not send me all the info in &lt;SPAN style="font-size: 13.3333px;"&gt;Cisco_IOS_XR_ip_rib_ipv4_oper&lt;/SPAN&gt; model and just the routes and its next hop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for all inputs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Mar 2017 10:01:54 GMT</pubDate>
    <dc:creator>Anton Abik</dc:creator>
    <dc:date>2017-03-02T10:01:54Z</dc:date>
    <item>
      <title>How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578018#M3166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My approach when writing some application for reading configuration of device is as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I create root object of the hierarchy. (as en example from Cisco_IOS_XR_infra_syslog_cfg module I create Syslog() )&lt;/LI&gt;&lt;LI&gt;put the object to crud.read method as a parameter&lt;/LI&gt;&lt;LI&gt;iterate / take what is needed from the crud read object output.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So far this worked for me. I hit the wall when I want to take all routes &lt;SPAN style="font-size: 13.3333px;"&gt;(dynamic/static/connected)&lt;/SPAN&gt; and its next hop from Cisco_IOS_XR_ip_rib_ipv4_oper model. My LAB XR has 10 000 routes across several VRFs. When I create the Rib() root object from rib oper model and pass it to crud read method, it takes 10 minutes to take the output. And the output contains lots of information I dont actually need. What I need is just all the routes from all VRFs and its next hops, nothing more. Is it somehow possible to get just these? I tried to go down the &lt;SPAN style="font-size: 13.3333px;"&gt;Cisco_IOS_XR_ip_rib_ipv4_oper&lt;/SPAN&gt; hiearchy and just pass to crud.read the deep nested object (&lt;CODE class="descclassname" style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace; font-size: 14.4px; background-position: initial; color: #000000; font-weight: bold;"&gt;Rib.Vrfs.Vrf.Afs.Af.Safs.Saf.IpRibRouteTableNames.IpRibRouteTableName.Routes.&lt;/CODE&gt;&lt;CODE class="descname" style="font-family: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace; font-size: 14.4px; background-position: initial; color: #000000; font-weight: bold;"&gt;Route&lt;/CODE&gt;). But I always hit the exception (attachment). Or is there some other approach how to accomplish that the XR device will not send me all the info in &lt;SPAN style="font-size: 13.3333px;"&gt;Cisco_IOS_XR_ip_rib_ipv4_oper&lt;/SPAN&gt; model and just the routes and its next hop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for all inputs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 10:01:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578018#M3166</guid>
      <dc:creator>Anton Abik</dc:creator>
      <dc:date>2017-03-02T10:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578019#M3167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anton,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide your sample code also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Einar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 11:46:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578019#M3167</guid>
      <dc:creator>einarnn</dc:creator>
      <dc:date>2017-03-02T11:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578020#M3168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! You can find the code in attachment. &lt;/P&gt;&lt;P&gt;PS: I tried many combinations to pass just the final Route() class to crud.read function. During that I noticed that I can go down to class till I hit the YList type. For example in Cisco_IOS_XR_ip_rib_ipv4_oper this works OK:&amp;nbsp; rib_oper = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf(). But when I try to pass to method this: rib_oper = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf.Afs() then I got the same exception &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 12:39:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578020#M3168</guid>
      <dc:creator>Anton Abik</dc:creator>
      <dc:date>2017-03-02T12:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578021#M3169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, when using nested classes with lists as parents, you need to populate the keys for the parent lists. Try the below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Note: You may need a workaround for the error mentioned here: &lt;/SPAN&gt;&lt;A href="https://community.cisco.com/message/247420"&gt;CRUD read error on Cisco_IOS_XR_ip_rib_ipv4_oper&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from ydk.services import CRUDService&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from ydk.providers import NetconfServiceProvider&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from ydk.models.cisco_ios_xr import Cisco_IOS_XR_ip_rib_ipv4_oper&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from ydk.providers import NetconfServiceProvider&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;rib = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;vrf = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;vrf.vrf_name='default'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;af = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf.Afs.Af()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;af.af_name = 'IPv4'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;saf = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf.Afs.Af.Safs.Saf()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;saf.saf_name='Unicast'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;table_name = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf.Afs.Af.Safs.Saf.IpRibRouteTableNames.IpRibRouteTableName()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;table_name.route_table_name = 'default'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;route = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf.Afs.Af.Safs.Saf.IpRibRouteTableNames.IpRibRouteTableName.Routes.Route()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;route.address='0.0.0.0'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;table_name.routes.route.append(route)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;saf.ip_rib_route_table_names.ip_rib_route_table_name.append(table_name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;af.safs.saf.append(saf)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;vrf.afs.af.append(af)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;rib.vrfs.vrf.append(vrf)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;provider = NetconfServiceProvider(address="10.33.94.147",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; port=830,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username="admin",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password="admin",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protocol="ssh",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timeout = 600)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;# create CRUD service&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;crud = CRUDService()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;rib_oper = crud.read(provider, route)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;print(rib_oper)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;provider.close()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 00:54:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578021#M3169</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2017-03-03T00:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578022#M3170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your inputs! I tested the code you pasted and still it takes about 10 minutes and the device is sending everything it has for that model &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/sad.png" /&gt; I am sharing with you the code and also the output. I little bit filtered just the routes and some other stuff. But you can see it collects everything, routes from every VRF, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas are highly welcome &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 15:26:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578022#M3170</guid>
      <dc:creator>Anton Abik</dc:creator>
      <dc:date>2017-03-03T15:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578023#M3171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for attaching your script, Anton. Looks like you are still using the top level object as the filter used for crud.read. Can you try changing the crud.read call to the below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rib = crud.read(provider, route)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 16:59:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578023#M3171</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2017-03-03T16:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578024#M3172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh my mistake, thanks a lot your code is working like charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Hopefully I can have one last annoying Q on this &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;Is it possible to take all route addresses from specific VRF? I was able to achieve this by creating the "whole" &lt;A href="http://ydk.cisco.com/py/docs/gen_doc_01e163eb0030ba0dee0e590d73a8dbd6b6952a8e.html#ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf.Afs.Af.Safs.Saf.IpRibRouteTableNames.IpRibRouteTableName.Routes.Route"&gt;Route()&lt;/A&gt; object but that contains lots of information I dont actually need (attribute_identity, client_id, diversion,...) as I need just the address parameter. I was lookin for some "wildcard" like route.address = "*" but I dont think such exist &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 10:13:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578024#M3172</guid>
      <dc:creator>Anton Abik</dc:creator>
      <dc:date>2017-03-06T10:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578025#M3173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're in luck as a wild card for all route addresses is available &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt;. If we just do not set the route address, it fetches all the routes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from ydk.services import CRUDService&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from ydk.providers import NetconfServiceProvider&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from ydk.models.cisco_ios_xr import Cisco_IOS_XR_ip_rib_ipv4_oper&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;from ydk.providers import NetconfServiceProvider&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;rib = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;vrf = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;vrf.vrf_name='default'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;af = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf.Afs.Af()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;af.af_name = 'IPv4'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;saf = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf.Afs.Af.Safs.Saf()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;saf.saf_name='Unicast'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;table_name = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf.Afs.Af.Safs.Saf.IpRibRouteTableNames.IpRibRouteTableName()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;table_name.route_table_name = 'default'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;route = Cisco_IOS_XR_ip_rib_ipv4_oper.Rib.Vrfs.Vrf.Afs.Af.Safs.Saf.IpRibRouteTableNames.IpRibRouteTableName.Routes.Route()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;#route.address='0.0.0.0' # Do not set the route address&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;table_name.routes.route.append(route)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;saf.ip_rib_route_table_names.ip_rib_route_table_name.append(table_name)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;af.safs.saf.append(saf)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;vrf.afs.af.append(af)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;rib.vrfs.vrf.append(vrf)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;provider = NetconfServiceProvider(address="localhost",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; port=1220,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username="admin",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; password="admin",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protocol="ssh",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timeout = 600)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;# create CRUD service&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;crud = CRUDService()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;rib_oper = crud.read(provider, route)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;print(rib_oper)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;provider.close()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 12:47:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578025#M3173</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2017-03-06T12:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578026#M3174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep but this fetches also all information from the whole Route() object and I want just the address from all routes &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/grin.png" /&gt; No wildcard for that? &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 14:09:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578026#M3174</guid>
      <dc:creator>Anton Abik</dc:creator>
      <dc:date>2017-03-06T14:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578027#M3175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IIRC, set the address of the Route object to an instance of the special type “ydk.types.Empty”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Einar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 14:17:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578027#M3175</guid>
      <dc:creator>einarnn</dc:creator>
      <dc:date>2017-03-06T14:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578028#M3176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys!! Its not Empty type but READ() type. But you kind of lead me to it &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 14:45:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578028#M3176</guid>
      <dc:creator>Anton Abik</dc:creator>
      <dc:date>2017-03-06T14:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I crud-read just specific deep nested class in the YDK hierarchy?</title>
      <link>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578029#M3177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, good! Sorry, I got the wrong type &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 14:51:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/how-can-i-crud-read-just-specific-deep-nested-class-in-the-ydk/m-p/3578029#M3177</guid>
      <dc:creator>einarnn</dc:creator>
      <dc:date>2017-03-06T14:51:18Z</dc:date>
    </item>
  </channel>
</rss>

