def wtp_up_callback(self, wtp): """Called when a new WTP connects to the controller.""" for block in wtp.supports: ucqm(tenant_id=self.tenant.tenant_id, block=block, every=self.every)
def wtp_up_callback(self, wtp): """Called when a new WTP connects to the controller.""" if wtp not in self.wtps: self.wtps.append(wtp) for block in wtp.supports: ucqm(block=block, tenant_id=self.tenant.tenant_id, every=5000, callback=self.ucqm_callback)
def wtp_up_callback(self, wtp): """ Called when a new WTP connects to the controller""" for block in wtp.supports: ucqm(block=block, tenant_id=self.tenant.tenant_id, every=self.polling, callback=self.ucqm_callback) ncqm(block=block, tenant_id=self.tenant.tenant_id, every=self.polling, callback=self.ncqm_callback)
def wtp_up_callback(self, wtp): """Called when a new WTP connects to the controller.""" for block in wtp.supports: ucqm(addrs=self.addrs, block=block, tenant_id=self.tenant.tenant_id, every=self.every, callback=self.update_cm) ncqm(addrs=self.addrs, block=block, tenant_id=self.tenant.tenant_id, every=self.every, callback=self.update_cm)
def wtp_up_callback(self, wtp): """Called when a new WTP connects to the controller.""" for block in wtp.supports: if block.black_listed: continue ucqm(addrs=self.addrs, block=block, tenant_id=self.tenant.tenant_id, every=self.every, callback=self.ucqm_callback) ncqm(addrs=self.addrs, block=block, tenant_id=self.tenant.tenant_id, every=self.every, callback=self.ncqm_callback)
def __init__(self, **kwargs): EmpowerApp.__init__(self, **kwargs) self.graphData = {} self.wifi_data = {} # List of VBSes active self.vbses = [] # List of WTPs active self.wtps = [] # Populate exsiting VBSes for vbs in self.tenant.vbses.values(): if vbs.connection: self.vbses.append(vbs) # Populate exsiting WTPs and trigger UCQM for existing WTPs for wtp in self.tenant.wtps.values(): if wtp.connection: self.wtps.append(wtp.addr.to_str()) for block in wtp.supports: ucqm(block=block, tenant_id=self.tenant.tenant_id, every=5000, callback=self.ucqm_callback) # Generating inital coordinates for the graph nodes self.coord = self.get_coordinates() vbsup(tenant_id=self.tenant.tenant_id, callback=self.vbs_up_callback) vbsdown(tenant_id=self.tenant.tenant_id, callback=self.vbs_down_callback) uejoin(tenant_id=self.tenant.tenant_id, callback=self.ue_join_callback) ueleave(tenant_id=self.tenant.tenant_id, callback=self.ue_leave_callback) wtpup(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback) wtpdown(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback)
def __init__(self, **kwargs): EmpowerApp.__init__(self, **kwargs) self.graphData = {} self.wifi_data = {} # List of VBSes active self.vbses = [] # List of WTPs active self.wtps = [] # Populate existing VBSes for vbs in self.tenant.vbses.values(): if vbs.connection: self.vbses.append(vbs) # Populate existing WTPs and trigger UCQM for existing WTPs for wtp in self.tenant.wtps.values(): if wtp.connection: self.wtps.append(wtp) for block in wtp.supports: ucqm(block=block, tenant_id=self.tenant.tenant_id, every=5000, callback=self.ucqm_callback) # Generating inital coordinates for the graph nodes self.coord = self.get_coordinates() vbsup(tenant_id=self.tenant.tenant_id, callback=self.vbs_up_callback) vbsdown(tenant_id=self.tenant.tenant_id, callback=self.vbs_down_callback) wtpup(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback) wtpdown(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback)