<?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: Genie Config Python Script Failing? in Tools</title>
    <link>https://community.cisco.com/t5/tools/genie-config-python-script-failing/m-p/4035194#M510</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;What is the output of:&lt;/P&gt;
&lt;PRE&gt;print(testbed.devices.keys())&lt;/PRE&gt;
&lt;P&gt;...placed just before the statement which is causing the error.&lt;/P&gt;
&lt;P&gt;It looks like the csr1000v has a different key to what you are expecting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers,&lt;/P&gt;
&lt;P&gt;Seb.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2020 07:13:37 GMT</pubDate>
    <dc:creator>Seb Rupik</dc:creator>
    <dc:date>2020-02-25T07:13:37Z</dc:date>
    <item>
      <title>Genie Config Python Script Failing?</title>
      <link>https://community.cisco.com/t5/tools/genie-config-python-script-failing/m-p/4035189#M509</link>
      <description>&lt;P&gt;Hey All!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First time Network Developer here. I've had some great fun with pyATS up until today where I keep getting issues trying to make a configuration change to a router on the DevNet sandbox. Here is what I'm trying to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Make a connection to the csr1000v router thats in the alwayson sandbox on devote&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Create a new Loopback interface&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can make a connection successfully to the csr100v then the following line of code fails:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;testbed&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;devices&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;device&lt;/SPAN&gt;&lt;SPAN&gt;].&lt;/SPAN&gt;&lt;SPAN&gt;configure&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;change&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;configuration&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is the error I get:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;File "src/pyats/topology/bases.py", line 100, in pyats.topology.bases.TopologyDict.__getitem__&lt;BR /&gt;KeyError: &amp;lt;Device csr1000v-1 at 0x107b5be80&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Has anybody come across this before??&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Feb 2020 06:59:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/genie-config-python-script-failing/m-p/4035189#M509</guid>
      <dc:creator>NetworkDude255</dc:creator>
      <dc:date>2020-02-25T06:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Genie Config Python Script Failing?</title>
      <link>https://community.cisco.com/t5/tools/genie-config-python-script-failing/m-p/4035194#M510</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;What is the output of:&lt;/P&gt;
&lt;PRE&gt;print(testbed.devices.keys())&lt;/PRE&gt;
&lt;P&gt;...placed just before the statement which is causing the error.&lt;/P&gt;
&lt;P&gt;It looks like the csr1000v has a different key to what you are expecting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers,&lt;/P&gt;
&lt;P&gt;Seb.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 07:13:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/genie-config-python-script-failing/m-p/4035194#M510</guid>
      <dc:creator>Seb Rupik</dc:creator>
      <dc:date>2020-02-25T07:13:37Z</dc:date>
    </item>
  </channel>
</rss>

