diff --git a/script_vpc_config_per_peer.py b/script_vpc_config_per_peer.py index 1183dee..b8e7edc 100644 --- a/script_vpc_config_per_peer.py +++ b/script_vpc_config_per_peer.py @@ -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) @@ -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")