Ejemplo n.º 1
0
 def clean(self):
     logging.debug("Killall ovsdb-server")
     utils.signal_program("ovsdb-server")
     if (utils_misc.program_is_alive("ovsdb-server")):
         utils.signal_program("ovsdb-server", signal.SIGKILL)
     logging.debug("Killall ovs-vswitchd")
     utils.signal_program("ovs-vswitchd")
     if (utils_misc.program_is_alive("ovs-vswitchd")):
         utils.signal_program("ovs-vswitchd", signal.SIGKILL)
Ejemplo n.º 2
0
 def check_switch_daemon(self):
     """
     Check if OVS daemon is started correctly.
     """
     working = utils_misc.program_is_alive("ovs-vswitchd", self.pid_files_path)
     if not working:
         logging.error("OpenVSwitch switch daemon with PID in file %s"
                       " not working.", self.ovs_pidfile)
     return working
Ejemplo n.º 3
0
 def check_switch_daemon(self):
     """
     Check if OVS daemon is started correctly.
     """
     working = utils_misc.program_is_alive(
         "ovs-vswitchd", self.pid_files_path)
     if not working:
         logging.error("OpenVSwitch switch daemon with PID in file %s"
                       " not working.", self.ovs_pidfile)
     return working