def setADHomeProtectionWebUI(config, enable): """ Set Home Protection status for adapter from its WebUI """ ad_obj = RuckusAD(config) ad_obj.set_home_protection(enable) time.sleep(2)
def setADSSID(config, wlan_if, ssid): """ Set SSID value for the specific interface on the adapter """ ad_obj = RuckusAD(config) res = ad_obj.setSSID(wlan_if, ssid) time.sleep(2)
def setADSSIDWebUI(config, ssid, is_vf7111): """ Login to Adapter WebUI and change SSID value """ ad_obj = RuckusAD(config) ad_obj.setSSIDWebUI(ssid, is_vf7111) time.sleep(3)
def setADSystemNameWebUI(config, system_name): """ Set system name for adapter from its WebUI """ ad_obj = RuckusAD(config) ad_obj.setSystemNameWebUI(system_name) time.sleep(2)
def setRuckusADState(config, state, wlan_if): """ Telnet to the Ruckus Adapter and set status for svcp """ ad_obj = RuckusAD(config) res = ad_obj.setState(wlan_if, state) time.sleep(2)
def getADHomeLoginInfo(config): """ Get Home login information from WebUI """ ad_obj = RuckusAD(config) res = ad_obj.get_home_login_info() time.sleep(2) return res
def setADEncryptionWebUI(config, encryption_cfg, is_vf7111): """ Login to Adapter WebUI and set encryption method for adapter Please refer to the set_encryption_web_ui on RuckusAD for detail of parameters """ ad_obj = RuckusAD(config) ad_obj.set_encryption_web_ui(encryption_cfg, is_vf7111) time.sleep(3)
def getADWirelessMac(config): """ Telnet to the Adapter and get mac address of wlan0 """ ad_obj = RuckusAD(config) res = ad_obj.getWirelessMac() time.sleep(1) return res
def getRuckusADState(config, wlan_if): """ Telnet to the Ruckus Adapter and get status of svcp """ ad_obj = RuckusAD(config) res = ad_obj.getState(wlan_if) time.sleep(1) return res
def configWlan(config, wlan_cfg): """ Create a wlan on the adapter @param wlan_cfg: a dictionary of wlan parameters """ ad_obj = RuckusAD(config) res = ad_obj.configWlan(wlan_cfg) time.sleep(2)
def getADDeviceStatusWebUI(config): """ Get status of adapter from WebUI @return a dictionary of device information """ ad_obj = RuckusAD(config) res = ad_obj.getDeviceStatusWebUI() time.sleep(2) return res
def getADEncryption(config, wlan_if): """ Get wlan configuration information on the adapter on the specific interface Return a dictionary of wlan information """ ad_obj = RuckusAD(config) res = ad_obj.getEncryption(wlan_if) time.sleep(1) return res