<?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 Defining same credentials for al elements in pyATS testbed.yaml file in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/defining-same-credentials-for-al-elements-in-pyats-testbed-yaml/m-p/4446597#M2463</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a network where all the network elements have the same login credentials, therefore my testbed.yaml file looks like this (excerpt):&lt;/P&gt;&lt;PRE&gt;---
testbed:
  name: Lab_Devices

devices:                                 
  NX7k_01:
    connections:
      cli:
        ip: 10.1.8.40
        protocol: ssh 
        port: 22
    credentials:
      default:
        username: cisco   
        password: "%ENC{w5jDrsOGw6HDlMOCwpzCmw==}"
    type: Nexus9000v
    os: nxos                        
  ASR_1001_01:
    connections:
      cli:
        ip: 10.1.8.10
        protocol: telnet
        port: 23
    credentials:
      default:
        username: cisco 
        password: "%ENC{w5jDrsOGw6HDlMOCwpzCmw==}"           
    type: ASR1001-X    &lt;/PRE&gt;&lt;P&gt;I would like to know if there is a way to define the credentials section only once for all the elements so that I don't have to define them over and over again. What would be the syntax for that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 17:13:52 GMT</pubDate>
    <dc:creator>oslopez</dc:creator>
    <dc:date>2021-08-09T17:13:52Z</dc:date>
    <item>
      <title>Defining same credentials for al elements in pyATS testbed.yaml file</title>
      <link>https://community.cisco.com/t5/controllers/defining-same-credentials-for-al-elements-in-pyats-testbed-yaml/m-p/4446597#M2463</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a network where all the network elements have the same login credentials, therefore my testbed.yaml file looks like this (excerpt):&lt;/P&gt;&lt;PRE&gt;---
testbed:
  name: Lab_Devices

devices:                                 
  NX7k_01:
    connections:
      cli:
        ip: 10.1.8.40
        protocol: ssh 
        port: 22
    credentials:
      default:
        username: cisco   
        password: "%ENC{w5jDrsOGw6HDlMOCwpzCmw==}"
    type: Nexus9000v
    os: nxos                        
  ASR_1001_01:
    connections:
      cli:
        ip: 10.1.8.10
        protocol: telnet
        port: 23
    credentials:
      default:
        username: cisco 
        password: "%ENC{w5jDrsOGw6HDlMOCwpzCmw==}"           
    type: ASR1001-X    &lt;/PRE&gt;&lt;P&gt;I would like to know if there is a way to define the credentials section only once for all the elements so that I don't have to define them over and over again. What would be the syntax for that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 17:13:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/defining-same-credentials-for-al-elements-in-pyats-testbed-yaml/m-p/4446597#M2463</guid>
      <dc:creator>oslopez</dc:creator>
      <dc:date>2021-08-09T17:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Defining same credentials for al elements in pyATS testbed.yaml fi</title>
      <link>https://community.cisco.com/t5/controllers/defining-same-credentials-for-al-elements-in-pyats-testbed-yaml/m-p/4447369#M2464</link>
      <description>&lt;P&gt;Ok just had a look at pyATS documentation and it was just a matter of moving the credentials section above devices section so that the credentials apply to all devices. That solved the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 20:33:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/defining-same-credentials-for-al-elements-in-pyats-testbed-yaml/m-p/4447369#M2464</guid>
      <dc:creator>oslopez</dc:creator>
      <dc:date>2021-08-10T20:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Defining same credentials for al elements in pyATS testbed.yaml fi</title>
      <link>https://community.cisco.com/t5/controllers/defining-same-credentials-for-al-elements-in-pyats-testbed-yaml/m-p/4594262#M2465</link>
      <description>&lt;P&gt;Just curios, is it possible to pass multiple strings to password field ? Incase login with one password fails, we can try with next set of passwords. Need this logic for a specific usecase.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 03:56:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/defining-same-credentials-for-al-elements-in-pyats-testbed-yaml/m-p/4594262#M2465</guid>
      <dc:creator>sacks</dc:creator>
      <dc:date>2022-04-18T03:56:12Z</dc:date>
    </item>
  </channel>
</rss>

