From ec8049d636b3ff48a0b34d84b4defad6f4a0d033 Mon Sep 17 00:00:00 2001
From: "rick.mollard" <rick.mollard@nebraska.edu>
Date: Fri, 24 Jun 2022 15:27:20 -0500
Subject: [PATCH]  Changes to be committed: 	modified:   README.txt 
 modified:   flipport.py  Changes not staged for commit: 	modified:  
 unkSwitches-cx.txt

---
 README.txt  | 6 +++---
 flipport.py | 7 ++++++-
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/README.txt b/README.txt
index ebd8e1d..646943c 100644
--- a/README.txt
+++ b/README.txt
@@ -6,7 +6,7 @@ pip install requests
 
 _________________________
 
-1.  Make sure you are in the "Python-Flip Port on-off" folder
+1.  Make sure you are in the correct folder where the file is located.
 2.  Update the text file for your Campus with the switches that you would like to work with.
-3.  type in "python3 flipport.py"
-4.  Enter your information and let the script run.
+3.  type in "python3 flipport.py"  to run the flipport.py script.
+4.  Enter your information and let the script run.
\ No newline at end of file
diff --git a/flipport.py b/flipport.py
index 2e6a4c7..7af713b 100644
--- a/flipport.py
+++ b/flipport.py
@@ -75,8 +75,13 @@ for selectIP in file:
         if re.search("[\d]+/[\d]/[\d]+",to):
             print (to)
             to2 = to.split("/")
-            output2 = [f"interface {to2[0]}/{to2[1]}/{to2[2]}","shut","no shut"]
+            output1 = [f"interface {to2[0]}/{to2[1]}/{to2[2]}","shut"]
+            net_connect.send_config_set(output1)
+            time.sleep(1)
+            output2 = [f"interface {to2[0]}/{to2[1]}/{to2[2]}","no shut"]
             net_connect.send_config_set(output2)
+
+
     net_connect.send_config_set(f"wr mem")
     net_connect.disconnect()
     print(f"Logged out from Switch!")
\ No newline at end of file
-- 
GitLab