Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import netmiko
- import json
- from getpass2 import getpass
- def username():
- netmiko.BaseConnection.__init__
- (
- ip=raw_input("Enter IP:"),
- username=raw_input("Enter Username:"),
- password=raw_input("Enter Password:"),
- secret=raw_input("Enter Secret:"),
- port=raw_input('Enter SSH Port #:')
- try:
- return int(netmiko.BaseConnection.__init__(port))
- except
- str(port):
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement