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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cloudinit/net/openbsd.py b/cloudinit/net/openbsd.py
index 9ec7ee9e..d87d8a4f 100644
--- a/cloudinit/net/openbsd.py
+++ b/cloudinit/net/openbsd.py
@@ -36,6 +36,9 @@ class Renderer(cloudinit.net.bsd.BSDRenderer):
if not self._postcmds:
LOG.debug("openbsd generate postcmd disabled")
return
+ subp.subp(['pkill', 'dhclient'], capture=True, rcs=[0, 1])
+ 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)
def set_route(self, network, netmask, gateway):