Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ def refresh_dhcrelay(self, force_kill=False):
dhcp_interfaces.discard(dhcp_interface)
continue
self._start_dhcrelay_process(dhcp_interfaces, dhcp_server_ip, force_kill)
self._start_dhcpmon_process(dhcp_interfaces, force_kill)

# TODO dhcpmon is not ready for count packet for dhcp_server, hence comment invoke it for now
# self._start_dhcpmon_process(dhcp_interfaces, force_kill)

def wait(self):
"""
Expand Down Expand Up @@ -246,7 +248,7 @@ def _start_dhcpmon_process(self, new_dhcp_interfaces, force_kill):
for pid, cmds in pids_cmds.items():
proc = psutil.Process(pid)
if proc.status() == psutil.STATUS_ZOMBIE:
syslog.syslog(syslog.LOG_ERR, "Faild to start dhcpmon process: {}".format(cmds))
syslog.syslog(syslog.LOG_ERR, "Failed to start dhcpmon process: {}".format(cmds))
terminate_proc(proc)
else:
syslog.syslog(syslog.LOG_INFO, "dhcpmon process started successfully, cmds: {}".format(cmds))
Expand Down