Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions script_vpc_config_per_peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
time.sleep(2)
auto_recover_config = ['vpc domain' + ' ' + str(vpc_domain_id),
'auto-recovery']
net_connect.send_config_set(auto_recover_config)
else:
print('\n #### auto-recovery is NOT enabled #### \n')
time.sleep(2)
Expand Down Expand Up @@ -123,9 +124,10 @@
print('\n #### vPC Configuration on this peer is completed successfully... The configuration done so far: #### \n')
time.sleep(5)
config_done = ['show run vpc',
'show run int port-channel' +' '+ str(vpc_domain_id)]
output = net_connect.send_config_set(config_done)
print(output)
'show run int port-channel ' + str(vpc_domain_id)]
for command in config_done:
output = net_connect.send_command(command)
print(output)
time.sleep(5)

print("\n #### Let's see the status of peer-keepalive link #### \n")
Expand Down