Esempio n. 1
0
 def __init__(self):
     Ktask.__init__(
         self,
         name='serial',
         start_keys=['ncp_serial'],
         start_tasks=['network', 'syslog'],
         stop_tasks=['diags', 'coapserver'],
         period=2,
     )
Esempio n. 2
0
 def __init__(self):
     Ktask.__init__(
         self,
         name='coapserver',
         start_keys=['dongle_rloc', 'dongle_prefix'],
         stop_keys=['all_network_bbrs'],
         start_tasks=['serial', 'network', 'diags'],
         stop_tasks=[],
         period=0.5)
Esempio n. 3
0
 def __init__(self):
     Ktask.__init__(
         self,
         name='dhcp',
         start_keys=['prefix', 'interior_ifname', 'ncp_rloc', 'interior_mac'],
         stop_keys=['interior_ifname'],
         start_tasks=['network', 'serial'],
         period=2,
     )
Esempio n. 4
0
 def __init__(self):
     Ktask.__init__(
         self,
         name='network',
         start_keys=[],
         start_tasks=[],
         stop_tasks=['diags', 'coapserver'],
         period=1,
     )
     self.syslog = None
Esempio n. 5
0
 def __init__(self):
     Ktask.__init__(
         self,
         name='coapserver',
         start_keys=['prefix_dua', 'ncp_rloc', 'ncp_prefix'],
         stop_keys=['all_network_bbrs'],
         start_tasks=['serial', 'network', 'syslog'],
         stop_tasks=[],
         period=1,
     )
Esempio n. 6
0
 def __init__(self):
     Ktask.__init__(
         self,
         name='network',
         start_keys=[
             'bridging_mark', 'bridging_table', 'interior_ifname',
             'dongle_rloc', 'interior_mac'
         ],
         start_tasks=['serial'],  # To obtain the latest dongle_rloc
         stop_tasks=['diags', 'coapserver'],
         period=2)
Esempio n. 7
0
 def __init__(self):
     Ktask.__init__(self,
                    name='diags',
                    start_keys=['dongle_ll', 'interior_ifname'],
                    start_tasks=['serial', 'network'],
                    period=1)
     self.petitioner = CoapClient()
     self.br_rloc16 = ''
     self.br_permanent_addr = ''
     self.br_internet_access = 'offline'
     self.nodes_list = []
     self.last_diags = []
     self.last_time = 0
Esempio n. 8
0
 def __init__(self):
     Ktask.__init__(self,
                    name='mdns',
                    start_keys=['exterior_ifname', 'bbr_seq', 'bbr_port'],
                    period=2)
     self.nat_enabled = False
Esempio n. 9
0
 def __init__(self):
     Ktask.__init__(self,
                    name='serial',
                    start_keys=['dongle_serial'],
                    stop_tasks=['diags', 'coapserver'],
                    period=2)