Advertisement
Guest User

Untitled

a guest
Apr 18th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. import getpass
  2.  
  3.  
  4. username = input("Input username: ")
  5. password = getpass.getpass("Input Password: ")
  6.  
  7. ####################### Device List ##########################
  8. device_list = [
  9.  
  10.   {'device_type': 'cisco_ios',
  11.   'ip': 'device1.foo.bar',
  12.   'username': username,
  13.   'password': password,
  14.   },
  15.  
  16.   {'device_type': 'cisco_ios',
  17.   'ip': 'device2.foo.bar',
  18.   'username': username,
  19.   'password': password,
  20.   }                
  21. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement