mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	cisco_wifi_ctl.py : needed to add delete_wlan to command list
This commit is contained in:
		@@ -111,7 +111,7 @@ def main():
 | 
				
			|||||||
      "cmd", "txPower", "bandwidth", "manual", "auto","no_wlan","show_wlan_summary",
 | 
					      "cmd", "txPower", "bandwidth", "manual", "auto","no_wlan","show_wlan_summary",
 | 
				
			||||||
      "ap_channel", "channel", "show", "create_wlan", "enable_wlan", "disable_wlan", "wlan_qos",
 | 
					      "ap_channel", "channel", "show", "create_wlan", "enable_wlan", "disable_wlan", "wlan_qos",
 | 
				
			||||||
      "disable_network_5ghz","disable_network_24ghz","enable_network_5ghz","enable_network_24ghz",
 | 
					      "disable_network_5ghz","disable_network_24ghz","enable_network_5ghz","enable_network_24ghz",
 | 
				
			||||||
      "wireless_tag_policy","no_wlan_wireless_tag_policy"])
 | 
					      "wireless_tag_policy","no_wlan_wireless_tag_policy","delete_wlan"])
 | 
				
			||||||
   parser.add_argument("--value",       type=str, help="set value")
 | 
					   parser.add_argument("--value",       type=str, help="set value")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   args = None
 | 
					   args = None
 | 
				
			||||||
@@ -1207,13 +1207,13 @@ def main():
 | 
				
			|||||||
            raise Exception("9800 series wlan is required")
 | 
					            raise Exception("9800 series wlan is required")
 | 
				
			||||||
         else:
 | 
					         else:
 | 
				
			||||||
            egg.sendline("config t")
 | 
					            egg.sendline("config t")
 | 
				
			||||||
            sleep(0.1)
 | 
					            sleep(0.4)
 | 
				
			||||||
            i = egg.expect_exact(["(config)#",pexpect.TIMEOUT],timeout=2)
 | 
					            i = egg.expect_exact(["(config)#",pexpect.TIMEOUT],timeout=2)
 | 
				
			||||||
            if i == 0:
 | 
					            if i == 0:
 | 
				
			||||||
               logg.info("elevated to (config)#")
 | 
					               logg.info("elevated to (config)#")
 | 
				
			||||||
               cmd = "no wlan %s"%(args.wlan)
 | 
					               cmd = "no wlan %s"%(args.wlan)
 | 
				
			||||||
               egg.sendline(cmd)
 | 
					               egg.sendline(cmd)
 | 
				
			||||||
               sleep(0.1)
 | 
					               sleep(0.4)
 | 
				
			||||||
            if i == 1:
 | 
					            if i == 1:
 | 
				
			||||||
               logg.info("did not get the (config)# prompt")                            
 | 
					               logg.info("did not get the (config)# prompt")                            
 | 
				
			||||||
      else:
 | 
					      else:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user