Copybash$ pyats shell --testbed-file our-testbed-file.yaml
Welcome to pyATS Interactive Shell
==================================
Python 3.6.8 (default, Jun 19 2019, 15:21:54)
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)]
>>> from pyats.topology import loader
>>> testbed = loader.load('our-testbed-file.yaml')
-------------------------------------------------------------------------------
>>> testbed
<pyats.topology.testbed.Testbed object at 0x10ef4a898>
>>> testbed.devices
TopologyDict({'csr1000v-1': <Device csr1000v-1 at 0x10fc7c080>})
>>> device = testbed.devices['csr1000v-1']
>>> device.connect()
>>> device.execute('show version')
>>>