<?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 pyATS Schema Question : NXOS Parser in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/pyats-schema-question-nxos-parser/m-p/4020904#M2063</link>
    <description>&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping someone may be able to help with a basic pyATS query surrounding an NXOS parser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the parser for the command 'show ip interface vrf &amp;lt;vrf_name&amp;gt;' and capturing this within my python script to a variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see in the schema the following at the head :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ Any (str) *: { 'vrf': &amp;lt;class 'str'&amp;gt;, 'interface_status': &amp;lt;class 'str'&amp;gt;, 'iod': &amp;lt;class 'int'&amp;gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the parser the the variable is populated with the relevant output, however what I would like to do is look up the status for all vLANS. I am using the following code snippet :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;pre_status = pre_output ['VlanXXX']['interface_status']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the above requires that I define the Vlan ID within the command.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there a way to use a wildcard initially and capture all of the statuses for the output ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2020 10:38:11 GMT</pubDate>
    <dc:creator>SteveNelson29701</dc:creator>
    <dc:date>2020-01-30T10:38:11Z</dc:date>
    <item>
      <title>pyATS Schema Question : NXOS Parser</title>
      <link>https://community.cisco.com/t5/controllers/pyats-schema-question-nxos-parser/m-p/4020904#M2063</link>
      <description>&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping someone may be able to help with a basic pyATS query surrounding an NXOS parser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the parser for the command 'show ip interface vrf &amp;lt;vrf_name&amp;gt;' and capturing this within my python script to a variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see in the schema the following at the head :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ Any (str) *: { 'vrf': &amp;lt;class 'str'&amp;gt;, 'interface_status': &amp;lt;class 'str'&amp;gt;, 'iod': &amp;lt;class 'int'&amp;gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the parser the the variable is populated with the relevant output, however what I would like to do is look up the status for all vLANS. I am using the following code snippet :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;pre_status = pre_output ['VlanXXX']['interface_status']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the above requires that I define the Vlan ID within the command.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there a way to use a wildcard initially and capture all of the statuses for the output ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 10:38:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pyats-schema-question-nxos-parser/m-p/4020904#M2063</guid>
      <dc:creator>SteveNelson29701</dc:creator>
      <dc:date>2020-01-30T10:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: pyATS Schema Question : NXOS Parser</title>
      <link>https://community.cisco.com/t5/controllers/pyats-schema-question-nxos-parser/m-p/4020927#M2064</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I resolved this issue, no resposnses required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 11:29:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/pyats-schema-question-nxos-parser/m-p/4020927#M2064</guid>
      <dc:creator>SteveNelson29701</dc:creator>
      <dc:date>2020-01-30T11:29:30Z</dc:date>
    </item>
  </channel>
</rss>

