Skip to content

Commit 7742a9c

Browse files
review changes
1 parent e967037 commit 7742a9c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

systemvm/debian/opt/cloud/bin/cs/CsDhcp.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import fcntl
2424
import shutil
2525
import tempfile
26-
import signal
2726
from .CsGuestNetwork import CsGuestNetwork
2827
from cs.CsDatabag import CsDataBag
2928
from cs.CsFile import CsFile
@@ -225,12 +224,9 @@ def remove_lease(self, ip):
225224

226225
# reload dnsmasq
227226
try:
228-
with open("/var/run/dnsmasq.pid") as pidf:
229-
os.kill(int(pidf.read().strip()), signal.SIGHUP)
227+
CsHelper.service("dnsmasq", "reload")
230228
except Exception:
231229
pass
232-
233-
os.system("ip neigh flush all")
234230
else:
235231
os.remove(tmp_path)
236232
finally:

0 commit comments

Comments
 (0)