コード例 #1
0
    def __init__(self, tenant, **kwargs):

        self.__addrs = EtherAddress(DEFAULT_ADDRS)
        self.conflicts = {'networks': [], 'stations': []}

        EmpowerApp.__init__(self, tenant, **kwargs)

        wtpup(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback)
コード例 #2
0
    def __init__(self, tenant, **kwargs):

        self.__addrs = EtherAddress(DEFAULT_ADDRS)
        self.conflicts = {'networks': [], 'stations': []}

        EmpowerApp.__init__(self, tenant, **kwargs)

        wtpup(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback)
コード例 #3
0
    def __init__(self, tenant, **kwargs):

        self.__limit = DEFAULT_LIMIT

        EmpowerApp.__init__(self, tenant, **kwargs)

        # Register an RSSI trigger for all LVAPs
        rssi(lvaps="ff:ff:ff:ff:ff:ff",
             tenant_id=self.tenant.tenant_id,
             relation='LT',
             value=self.limit,
             callback=self.low_rssi)

        # Register an wtp up event
        wtpup(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback)
コード例 #4
0
    def __init__(self, **kwargs):

        EmpowerApp.__init__(self, **kwargs)
        self.graphData = {}

        self.vbses = []

        self.wtps = []
        self.wifi_data = {}

        self.coord = self.get_coordinates()

        self.vbsup(callback=self.vbs_up_callback)
        self.vbsdown(callback=self.vbs_down_callback)

        wtpup(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback)
コード例 #5
0
ファイル: events.py プロジェクト: takhs91/empower-runtime
    def __init__(self, tenant, **kwargs):

        EmpowerApp.__init__(self, tenant, **kwargs)

        cppup(tenant_id=self.tenant.tenant_id, callback=self.cpp_up_callback)

        cppdown(tenant_id=self.tenant.tenant_id,
                callback=self.cpp_down_callback)

        wtpup(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback)

        wtpdown(tenant_id=self.tenant.tenant_id,
                callback=self.wtp_down_callback)

        lvapjoin(tenant_id=self.tenant.tenant_id,
                 callback=self.lvap_join_callback)

        lvapleave(tenant_id=self.tenant.tenant_id,
                  callback=self.lvap_leave_callback)
コード例 #6
0
ファイル: events.py プロジェクト: archam/empower-runtime
    def __init__(self, tenant, **kwargs):

        EmpowerApp.__init__(self, tenant, **kwargs)

        cppup(tenant_id=self.tenant.tenant_id,
              callback=self.cpp_up_callback)

        cppdown(tenant_id=self.tenant.tenant_id,
                callback=self.cpp_down_callback)

        wtpup(tenant_id=self.tenant.tenant_id,
              callback=self.wtp_up_callback)

        wtpdown(tenant_id=self.tenant.tenant_id,
                callback=self.wtp_down_callback)

        lvapjoin(tenant_id=self.tenant.tenant_id,
                 callback=self.lvap_join_callback)

        lvapleave(tenant_id=self.tenant.tenant_id,
                  callback=self.lvap_leave_callback)
コード例 #7
0
    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)
コード例 #8
0
    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)
コード例 #9
0
 def __init__(self, **kwargs):
     self.__addrs = None
     EmpowerApp.__init__(self, **kwargs)
     wtpup(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback)
コード例 #10
0
ファイル: mapspoller.py プロジェクト: archam/empower-runtime
    def __init__(self, tenant, **kwargs):

        Poller.__init__(self, tenant, **kwargs)

        wtpup(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback)
コード例 #11
0
    def __init__(self, tenant, **kwargs):

        Poller.__init__(self, tenant, **kwargs)

        wtpup(tenant_id=self.tenant.tenant_id, callback=self.wtp_up_callback)