e.g.
r2 = '192.168.122.72'
r3 = '192.168.122.73'
hostnames = [r2,r3]
#commands = ['term len 0','show run']
for r in hostnames:
print (r)
print (hostnames)
print str(r)
Output of this is....
192.168.122.72
['192.168.122.72', '192.168.122.73']
192.168.122.72
192.168.122.73
['192.168.122.72', '192.168.122.73']
192.168.122.73
I actually want to see an output that will say the items literal text, not its value, so i actually want to see this.......
r2
r3
Ultimately, want to create a file that is the name of the router, not its IP.
Thank you in advance!