Skip to content

Commit

Permalink
addding getpass basic support
Browse files Browse the repository at this point in the history
  • Loading branch information
Krlosromero committed Mar 24, 2020
1 parent e321822 commit 4d5abba
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions mpls-lab/netautomator_scripts/conn_test_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@
'Success rate is 80 percent (4/5), round-trip min/avg/max '
'= 2/2/4 ms'
"""
# initial hosf location file --> it should be with args
import yaml
import time
from netmiko import Netmiko
from pprint import pprint
from netaddr import IPNetwork
from getpass import getpass

# initial hosf location file
location = "../extra/hosts_file.conf"

# getting networks devices password --Assuming is the same for all the devices...
Expand Down Expand Up @@ -82,5 +89,5 @@ def main():
data = doc_read("../extra/hosts_file.conf")
pprint(conn_link_tests(data))

if __name__ == '__main__':
main()

main()

0 comments on commit 4d5abba

Please sign in to comment.