Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from netmiko import ConnectHandler
- cisco = {
- 'device_type': 'cisco_ios',
- 'ip': ip,
- 'username': username,
- 'password': password,
- }
- net_connect = ConnectHandler(**cisco)
- net_connect.send_command('wr')
- net_connect.send_command('reload')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement