summaryrefslogtreecommitdiff
path: root/cloudinit/net/openbsd.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/net/openbsd.py')
-rw-r--r--cloudinit/net/openbsd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/net/openbsd.py b/cloudinit/net/openbsd.py
index 70e9f461..5dd13800 100644
--- a/cloudinit/net/openbsd.py
+++ b/cloudinit/net/openbsd.py
@@ -4,7 +4,7 @@ import platform
import cloudinit.net.bsd
from cloudinit import log as logging
-from cloudinit import subp, util
+from cloudinit import net, subp, util
LOG = logging.getLogger(__name__)
@@ -43,7 +43,7 @@ class Renderer(cloudinit.net.bsd.BSDRenderer):
["dhcpleasectl", "-w", "30", interface], capture=True
)
else:
- subp.subp(["pkill", "dhclient"], capture=True, rcs=[0, 1])
+ net.dhcp.IscDhclient.kill_dhcp_client()
subp.subp(["route", "del", "default"], capture=True, rcs=[0, 1])
subp.subp(["route", "flush", "default"], capture=True, rcs=[0, 1])
subp.subp(["sh", "/etc/netstart"], capture=True)