<?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: BGP Attribute Error in Tools</title>
    <link>https://community.cisco.com/t5/tools/bgp-attribute-error/m-p/3845114#M2255</link>
    <description>Looking at your YAML files, it seems you are mixing YANG and python attributes somehow. You should only use the python attribute names like “router_id”. Please refer to the documentation: &lt;A href="http://ydk.cisco.com/py/docs/ydk.models.cisco_ios_xe.html" target="_blank"&gt;http://ydk.cisco.com/py/docs/ydk.models.cisco_ios_xe.html&lt;/A&gt; to find the python classes/attributes corresponding to your YANG&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Apr 2019 13:53:09 GMT</pubDate>
    <dc:creator>abhirame</dc:creator>
    <dc:date>2019-04-25T13:53:09Z</dc:date>
    <item>
      <title>BGP Attribute Error</title>
      <link>https://community.cisco.com/t5/tools/bgp-attribute-error/m-p/3845098#M2254</link>
      <description>&lt;P&gt;I'm using the newest available docker image of ydk-py.&amp;nbsp; I'm using a script that takes in a YAML representation of YANG modeled configuration.&amp;nbsp; When I try applying a router id for BGP, it says the attribute doesn't exist even though the YANG model suggests it does.&amp;nbsp; Can anyone see something I'm doing wrong?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;YANG path attached&lt;/P&gt;&lt;P&gt;YAML File attached&lt;/P&gt;&lt;P&gt;python recursion code at error attached&lt;/P&gt;&lt;P&gt;Error attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 13:39:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-attribute-error/m-p/3845098#M2254</guid>
      <dc:creator>crench92</dc:creator>
      <dc:date>2019-04-25T13:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: BGP Attribute Error</title>
      <link>https://community.cisco.com/t5/tools/bgp-attribute-error/m-p/3845114#M2255</link>
      <description>Looking at your YAML files, it seems you are mixing YANG and python attributes somehow. You should only use the python attribute names like “router_id”. Please refer to the documentation: &lt;A href="http://ydk.cisco.com/py/docs/ydk.models.cisco_ios_xe.html" target="_blank"&gt;http://ydk.cisco.com/py/docs/ydk.models.cisco_ios_xe.html&lt;/A&gt; to find the python classes/attributes corresponding to your YANG&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Apr 2019 13:53:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-attribute-error/m-p/3845114#M2255</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2019-04-25T13:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: BGP Attribute Error</title>
      <link>https://community.cisco.com/t5/tools/bgp-attribute-error/m-p/3845144#M2256</link>
      <description>&lt;P&gt;Thanks a lot.&amp;nbsp; I was putting dashes in the fields based on what it looked like in the pyang output of the YANG model versus what is expected in the attached API document which are underscores.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 14:16:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-attribute-error/m-p/3845144#M2256</guid>
      <dc:creator>crench92</dc:creator>
      <dc:date>2019-04-25T14:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: BGP Attribute Error</title>
      <link>https://community.cisco.com/t5/tools/bgp-attribute-error/m-p/3845195#M2257</link>
      <description>&lt;P&gt;I fixed the YAML to underscores but now I get the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;root@2fbb1af0ab2a:~/ydk-py/yang/yaml-101# python 1_send_yaml.py bgp bgp.yaml&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "1_send_yaml.py", line 32, in &amp;lt;module&amp;gt;&lt;BR /&gt;sys.exit(main())&lt;BR /&gt;File "1_send_yaml.py", line 24, in main&lt;BR /&gt;interface = YdkModel(args.model, data_parsed)&lt;BR /&gt;File "/root/ydk-py/yang/yaml-101/ydk_yaml.py", line 43, in __init__&lt;BR /&gt;instantiate(self.binding, k, v)&lt;BR /&gt;File "/root/ydk-py/yang/yaml-101/ydk_yaml.py", line 21, in instantiate&lt;BR /&gt;instantiate(container_instance, k, v, action='assign')&lt;BR /&gt;File "/root/ydk-py/yang/yaml-101/ydk_yaml.py", line 12, in instantiate&lt;BR /&gt;getattr(binding, model_key).append(instantiate(binding, model_key, el, action='return'))&lt;BR /&gt;File "/root/ydk-py/yang/yaml-101/ydk_yaml.py", line 21, in instantiate&lt;BR /&gt;instantiate(container_instance, k, v, action='assign')&lt;BR /&gt;File "/root/ydk-py/yang/yaml-101/ydk_yaml.py", line 12, in instantiate&lt;BR /&gt;getattr(binding, model_key).append(instantiate(binding, model_key, el, action='return'))&lt;BR /&gt;File "/usr/local/lib/python2.7/dist-packages/ydk/types/py_types.py", line 621, in append&lt;BR /&gt;self._log_error_and_raise_exception(msg, YInvalidArgumentError)&lt;BR /&gt;File "/usr/local/lib/python2.7/dist-packages/ydk/types/py_types.py", line 459, in _log_error_and_raise_exception&lt;BR /&gt;raise exception_class(msg)&lt;BR /&gt;ydk.errors.YInvalidArgumentError: Argument &amp;lt;class 'ydk.types.py_types.YList'&amp;gt; is not supported by YList class; data ignored&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure what it doesn't like here.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 15:03:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-attribute-error/m-p/3845195#M2257</guid>
      <dc:creator>crench92</dc:creator>
      <dc:date>2019-04-25T15:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: BGP Attribute Error</title>
      <link>https://community.cisco.com/t5/tools/bgp-attribute-error/m-p/3847374#M2258</link>
      <description>This looks like your YAML file is doing something that the YList class does not like. It may be trying to somehow trying to create a YList.&lt;BR /&gt; &lt;BR /&gt;Please check the ydk-py-samples for examples on how to use YDK objects: &lt;A href="https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/models/cisco-ios-xe/Cisco-IOS-XE-native/native" target="_blank"&gt;https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/models/cisco-ios-xe/Cisco-IOS-XE-native/native&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;For how to use YAML, please check their documentation or try something like stackoverflow etc.  I do not know YAML so I cannot comment on how you might debug or fix this error. Sorry</description>
      <pubDate>Mon, 29 Apr 2019 17:52:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/bgp-attribute-error/m-p/3847374#M2258</guid>
      <dc:creator>abhirame</dc:creator>
      <dc:date>2019-04-29T17:52:18Z</dc:date>
    </item>
  </channel>
</rss>

