Deleting to swap chapter 13 and 14

This commit is contained in:
muassif
2021-08-11 17:29:25 +04:00
committed by GitHub
parent 69c4ff30f7
commit c6c7e2c969
2 changed files with 0 additions and 40 deletions
-20
View File
@@ -1,20 +0,0 @@
from netmiko import ConnectHandler
cisco_rtr = {
"device_type": "cisco_ios",
"host": "172.16.2.50",
"username": "root",
"password": "rootroot",
}
def main():
commands = ["int Lo0", "description my custom description", "commit"]
# commands =["logging buffered 100000"]
with ConnectHandler(**cisco_rtr) as net_connect:
output = net_connect.send_config_set(commands)
print(output)
print()
if __name__ == '__main__':
main()
-20
View File
@@ -1,20 +0,0 @@
from netmiko import ConnectHandler
cisco_rtr = {
"device_type": "cisco_ios",
"host": "172.16.2.50",
"username": "root",
"password": "rootroot",
}
def main():
command = "show ip int brief"
with ConnectHandler(**cisco_rtr) as net_connect:
print(net_connect.find_prompt())
print(net_connect.enable())
output = net_connect.send_command(command)
print(output)
if __name__ == '__main__':
main()