예제 #1
0
 def __init__(self):
     preference = global_config.get('netutils', 'preference',
                                    'ioctlnetutils.py')
     available = self.find_available_netutils()
     if preference in available:
         self.recommended_netutils = self.load_netutils(preference)
     else:
         self.recommended_netutils = self.load_netutils(available[0])
예제 #2
0
 def do_start(self):
     check_timeout = global_config.get('wiredlinkcheck',
                                       'timeout_seconds', 2)
     gobject.timeout_add_seconds(check_timeout, self.check_status)
     self.check_status()
예제 #3
0
 def start(self, profile):
     dhcp_client = self._clients.get(global_config.get('dhcp', 'preference',
                                     self._clients.items()[0][0]),
                                     self._clients.items()[0][1])
     self.dhcp_client = dhcp_client(self.interface_name, profile)
     self.dhcp_client.start()