def add_bandwidth_rule_range_select_ssid(self,n,upstream,downstream): #点击带宽规则菜单 BandwidthControl.Bw_menu(self) #点击带宽规则添加按钮 BandwidthControl.add_Bandwidth_Rule_Bt(self) #点击勾选带宽规则 BandwidthControl.enable_dis_Bandwidth(self) #选择所有SSID BandwidthControl.select_n_ssid(self,n) #输入上游规则 BandwidthControl.set_Upstream_Rate(self,upstream) #输入下游规则 BandwidthControl.set_Downstream_Rate(self,downstream) #保存 BandwidthControl.save(self) #应用 BandwidthControl.apply(self) time.sleep(10)
def add_bandwidth_rule_range_mac_ssid(self,type,mac,upstream,downstream,n): #点击带宽规则菜单 BandwidthControl.Bw_menu(self) #点击带宽规则添加按钮 BandwidthControl.add_Bandwidth_Rule_Bt(self) #点击勾选带宽规则 BandwidthControl.enable_dis_Bandwidth(self) #选择所有SSID BandwidthControl.select_n_ssid(self,n) #选择范围 BandwidthControl.select_Range_Constraint(self,type) #填入mac地址 BandwidthControl.Mac_Address(self,mac) #输入上游规则 BandwidthControl.set_Upstream_Rate(self,upstream) #输入下游规则 BandwidthControl.set_Downstream_Rate(self,downstream) #保存 BandwidthControl.save(self) #应用 BandwidthControl.apply(self)