mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	cisco_wifi_ctl.py lf_cisco_power.py : cleaned up output when not in verbose mode
This commit is contained in:
		@@ -1362,7 +1362,7 @@ def main():
 | 
			
		||||
               command_sent = True              
 | 
			
		||||
 | 
			
		||||
         except:
 | 
			
		||||
            logg.info("exception in logout loop")      
 | 
			
		||||
            logg.info("closing connection logout loop")      
 | 
			
		||||
      try:  
 | 
			
		||||
         egg.sendline("logout")
 | 
			
		||||
         logg.info("logout")
 | 
			
		||||
@@ -1370,7 +1370,7 @@ def main():
 | 
			
		||||
         egg.close(force = True)   
 | 
			
		||||
         sleep(0.1)
 | 
			
		||||
      except:
 | 
			
		||||
         logg.info("exception on logout")      
 | 
			
		||||
         logg.info("closing connection on logout")      
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1432,7 +1432,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          print("3504 cisco_wifi_ctl.py: config 802.11a enable network")
 | 
			
		||||
          subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11a enable network","--port", args.port])
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11a enable network","--port", args.port],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
       except subprocess.CalledProcessError as process_error:
 | 
			
		||||
          print("Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
 | 
			
		||||
          exit(1) 
 | 
			
		||||
@@ -1440,7 +1440,7 @@ def main():
 | 
			
		||||
       try:
 | 
			
		||||
          print("3504 cisco_wifi_ctl.py: config 802.11b enable network")
 | 
			
		||||
          subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11b enable network","--port", args.port])
 | 
			
		||||
                   "--action", "cmd", "--value", "config 802.11b enable network","--port", args.port],capture_output=cap_ctl_out, check=True)
 | 
			
		||||
       except subprocess.CalledProcessError as process_error:
 | 
			
		||||
          print("Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
 | 
			
		||||
          exit(1) 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user