10-22-2019 09:26 AM
genie parse "show version" --testbed-file tb.yaml --devices leaf1
gives me
Failed while bringing device to "any" state
my leaf1 device is an ncs-5501 running ios-xr. We use custom prompt to include <hostname> before the #, wonder if this could be messing up genie / pyats?
10-23-2019 06:21 AM
10-28-2019 06:43 AM
look slike i have the same problem too. No response from the PyATS team either.
10-28-2019 06:49 AM
To be clear, pyATS support team was very helpful and did help me by pointing out what needed to be fixed in my testbed file.
03-29-2020 02:44 AM - edited 03-29-2020 02:45 AM
@ AdamLowery
do you want to share the error message and testbed file?
make sure the testbed file if formatted correctly and have all the details to connect to the device.
you can also validate the testbed file .. some of the warnings can be ignored ..
pyats validate testbed TESTBED_FILENAME.yaml pyats validate testbed tb.yaml Loading testbed file: tb.yaml -------------------------------------------------------------------------------- Testbed Name: tb Testbed Devices: . `-- csr1000v-1 [router/iosxe] Warning Messages ---------------- - Device 'csr1000v-1' missing 'platform' definition - Device 'csr1000v-1' has no interface definitions YAML Lint Messages ------------------ %
https://developer.cisco.com/docs/pyats/#!connection-to-devices/device-connections
# a simpe testbed yaml containing a single device devices: # all device definition goes under devices block csr1000v-1: # start a device definition with its HOSTNAME type: router os: iosxe # this tells the engine what type of OS its connected to credentials: default: # login credentials username: admin password: Cisco123 connections: # give the block on how to connect to its mgmt interface mgmt: protocol: ssh ip: 172.25.192.90
devices:
csr1000v-1: <<< hostname should match device prompt
for long device names or to target specific devices .. you use an alias
devices: csr1000v-1: alias: node1
genie parse "show version" --testbed-file tb.yaml --devices node1
HTH
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide