<?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 Can't set leaf-based attribute value using YLeaf instance in Tools</title>
    <link>https://community.cisco.com/t5/tools/can-t-set-leaf-based-attribute-value-using-yleaf-instance/m-p/3549929#M2363</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;Here&amp;nbsp; &lt;A href="http://ydk.cisco.com/py/docs/api/types.html#ydk.types.YLeaf" title="http://ydk.cisco.com/py/docs/api/types.html#ydk.types.YLeaf"&gt;http://ydk.cisco.com/py/docs/api/types.html#ydk.types.YLeaf &lt;/A&gt;&amp;nbsp; found information,that such class as YLeaf actually exists within ydk.&lt;BR /&gt;Semantics of YLeaf is to be a reflection of yang-leaf data-type within YDK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decided to perform some test&lt;BR /&gt;1. In this&amp;nbsp; piece of code value of leaf-meaning attribute is set using str-type object (set_leaf_using_str_type_object.py). This approach&amp;nbsp;&amp;nbsp; is proven to be functional, simple and demonstrated in all examples I just can remember, but has one drawback. yfilter is not applicable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Here&amp;nbsp; i tried to set&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;value of leaf-meaning attribute&amp;nbsp; using YLeaf-type object (set_leaf_using_yleaf_type_object.py). But execution failes with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;root@YDK072:~/trash# python set_leaf_using_yleaf_type_object.py &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "set_leaf_using_yleaf_type_object.py", line 28, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ge000.name = leaf_instance&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/models/junos/configuration.py", line 1203298, in __setattr__&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._perform_setattr(Configuration.Interfaces.Interface, ['name', 'apply_groups', 'apply_groups_except', 'description', 'disable', 'passive_monitor_mode', 'no_keepalives', 'traps', 'no_traps', 'interface_mib', 'no_interface_mib', 'accounting_profile', 'per_unit_scheduler', 'no_per_unit_scheduler', 'shared_scheduler', 'l2tp_maximum_session', 'schedulers', 'dce', 'vlan_tagging', 'stacked_vlan_tagging', 'flexible_vlan_tagging', 'native_vlan_id', 'speed', 'mtu', 'link_mode', 'encapsulation', 'mac', 'shared_interface', 'gratuitous_arp_reply', 'no_gratuitous_arp_reply', 'no_gratuitous_arp_request', 'no_no_gratuitous_arp_request'], name, value)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/types/py_types.py", line 416, in _perform_setattr&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; super(Entity, self).__setattr__(name, value)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.gen.throw(type, value, traceback)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/errors/error_handler.py", line 95, in handle_type_error&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _raise(_exc)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/errors/error_handler.py", line 56, in _raise&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise exc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;ydk.errors.YModelError: set(): incompatible function arguments. The following argument types are supported:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7. (self: ydk_.types.YLeaf, value: float) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8. (self: ydk_.types.YLeaf, value: ydk_.types.Empty) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9. (self: ydk_.types.YLeaf, value: ydk_.types.Identity) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10. (self: ydk_.types.YLeaf, value: ydk_.types.Bits) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11. (self: ydk_.types.YLeaf, value: unicode) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12. (self: ydk_.types.YLeaf, value: ydk_.types.Enum.YLeaf) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13. (self: ydk_.types.YLeaf, value: ydk_.types.Decimal64) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q: Is it expected behavior, that&amp;nbsp; YLeaf type object&amp;nbsp; can not be used as value for leaf-meaning attribute ?&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there any other options to define netconf operation (replace,delete, etc) for leaf data-structure&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2018 15:55:27 GMT</pubDate>
    <dc:creator>aligang1988</dc:creator>
    <dc:date>2018-06-12T15:55:27Z</dc:date>
    <item>
      <title>Can't set leaf-based attribute value using YLeaf instance</title>
      <link>https://community.cisco.com/t5/tools/can-t-set-leaf-based-attribute-value-using-yleaf-instance/m-p/3549929#M2363</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;Here&amp;nbsp; &lt;A href="http://ydk.cisco.com/py/docs/api/types.html#ydk.types.YLeaf" title="http://ydk.cisco.com/py/docs/api/types.html#ydk.types.YLeaf"&gt;http://ydk.cisco.com/py/docs/api/types.html#ydk.types.YLeaf &lt;/A&gt;&amp;nbsp; found information,that such class as YLeaf actually exists within ydk.&lt;BR /&gt;Semantics of YLeaf is to be a reflection of yang-leaf data-type within YDK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decided to perform some test&lt;BR /&gt;1. In this&amp;nbsp; piece of code value of leaf-meaning attribute is set using str-type object (set_leaf_using_str_type_object.py). This approach&amp;nbsp;&amp;nbsp; is proven to be functional, simple and demonstrated in all examples I just can remember, but has one drawback. yfilter is not applicable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Here&amp;nbsp; i tried to set&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;value of leaf-meaning attribute&amp;nbsp; using YLeaf-type object (set_leaf_using_yleaf_type_object.py). But execution failes with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;root@YDK072:~/trash# python set_leaf_using_yleaf_type_object.py &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Traceback (most recent call last):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "set_leaf_using_yleaf_type_object.py", line 28, in &amp;lt;module&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ge000.name = leaf_instance&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/models/junos/configuration.py", line 1203298, in __setattr__&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._perform_setattr(Configuration.Interfaces.Interface, ['name', 'apply_groups', 'apply_groups_except', 'description', 'disable', 'passive_monitor_mode', 'no_keepalives', 'traps', 'no_traps', 'interface_mib', 'no_interface_mib', 'accounting_profile', 'per_unit_scheduler', 'no_per_unit_scheduler', 'shared_scheduler', 'l2tp_maximum_session', 'schedulers', 'dce', 'vlan_tagging', 'stacked_vlan_tagging', 'flexible_vlan_tagging', 'native_vlan_id', 'speed', 'mtu', 'link_mode', 'encapsulation', 'mac', 'shared_interface', 'gratuitous_arp_reply', 'no_gratuitous_arp_reply', 'no_gratuitous_arp_request', 'no_no_gratuitous_arp_request'], name, value)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/types/py_types.py", line 416, in _perform_setattr&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; super(Entity, self).__setattr__(name, value)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.gen.throw(type, value, traceback)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/errors/error_handler.py", line 95, in handle_type_error&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _raise(_exc)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/ydk/errors/error_handler.py", line 56, in _raise&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise exc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;ydk.errors.YModelError: set(): incompatible function arguments. The following argument types are supported:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6. (self: ydk_.types.YLeaf, value: int) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7. (self: ydk_.types.YLeaf, value: float) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8. (self: ydk_.types.YLeaf, value: ydk_.types.Empty) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9. (self: ydk_.types.YLeaf, value: ydk_.types.Identity) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10. (self: ydk_.types.YLeaf, value: ydk_.types.Bits) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11. (self: ydk_.types.YLeaf, value: unicode) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12. (self: ydk_.types.YLeaf, value: ydk_.types.Enum.YLeaf) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13. (self: ydk_.types.YLeaf, value: ydk_.types.Decimal64) -&amp;gt; None&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q: Is it expected behavior, that&amp;nbsp; YLeaf type object&amp;nbsp; can not be used as value for leaf-meaning attribute ?&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there any other options to define netconf operation (replace,delete, etc) for leaf data-structure&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 15:55:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/can-t-set-leaf-based-attribute-value-using-yleaf-instance/m-p/3549929#M2363</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-06-12T15:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set leaf-based attribute value using YLeaf instance</title>
      <link>https://community.cisco.com/t5/tools/can-t-set-leaf-based-attribute-value-using-yleaf-instance/m-p/3549930#M2364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to the developer guide which has some example for this. You may want to use YFilter for netconf operations. YLeaf is just used internally to represent leafs and is not intended to be used by end user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ydk.cisco.com/py/docs/api/filters.html" title="http://ydk.cisco.com/py/docs/api/filters.html"&gt;http://ydk.cisco.com/py/docs/api/filters.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://ydk.cisco.com/py/docs/guides/crud_guide.html" title="http://ydk.cisco.com/py/docs/guides/crud_guide.html"&gt;http://ydk.cisco.com/py/docs/guides/crud_guide.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 21:19:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/can-t-set-leaf-based-attribute-value-using-yleaf-instance/m-p/3549930#M2364</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-06-12T21:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set leaf-based attribute value using YLeaf instance</title>
      <link>https://community.cisco.com/t5/tools/can-t-set-leaf-based-attribute-value-using-yleaf-instance/m-p/3549931#M2365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is my understanding right, that currently leaf value may be assigned with delete/remove nc:operation tag only?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In this case&amp;nbsp; leaf_like&amp;nbsp; object attributes&amp;nbsp; are assigned&amp;nbsp; with YFilter class object, as it explained here &lt;A href="http://ydk.cisco.com/py/docs/guides/crud_guide.html#deleting-a-leaf" title="http://ydk.cisco.com/py/docs/guides/crud_guide.html#deleting-a-leaf"&gt;http://ydk.cisco.com/py/docs/guides/crud_guide.html#deleting-a-leaf&lt;/A&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another type of operations (such as create, merge, replace ) may not be specified&amp;nbsp; directly for leaf_like attribute, because it based on standard python datatypes (int,bool, str), which have no .yfilter attribute. Such operation tags only may be inherited from parent configuration block (list, leaf-list, container), which are based on ydk specific datatypes and have .yfilter attribute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 09:25:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/can-t-set-leaf-based-attribute-value-using-yleaf-instance/m-p/3549931#M2365</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-06-15T09:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set leaf-based attribute value using YLeaf instance</title>
      <link>https://community.cisco.com/t5/tools/can-t-set-leaf-based-attribute-value-using-yleaf-instance/m-p/3549932#M2366</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;Any of the YFilter options can be used with leafs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following the above &lt;A href="http://ydk.cisco.com/py/docs/guides/crud_guide.html#deleting-a-leaf"&gt;example&lt;/A&gt;, something like the below should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;# Set a dummy value to the leaf
cdp.timer = 5
# Assign YFilter.replace to the 'timer' leaf
cdp.timer = YFilter.replace

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 17:02:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/can-t-set-leaf-based-attribute-value-using-yleaf-instance/m-p/3549932#M2366</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2018-06-15T17:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't set leaf-based attribute value using YLeaf instance</title>
      <link>https://community.cisco.com/t5/tools/can-t-set-leaf-based-attribute-value-using-yleaf-instance/m-p/3549933#M2367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it works in the way you previously explained !&lt;BR /&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 11:34:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/can-t-set-leaf-based-attribute-value-using-yleaf-instance/m-p/3549933#M2367</guid>
      <dc:creator>aligang1988</dc:creator>
      <dc:date>2018-06-25T11:34:54Z</dc:date>
    </item>
  </channel>
</rss>

