forgot something

This commit is contained in:
Michael Hudson-Doyle 2016-08-12 16:49:30 +12:00
parent 12c0947bad
commit 55bc516959
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class NetworkController(BaseController):
else:
with open('/etc/netplan/01-console-conf.yaml', 'w') as w:
w.write(yaml.dump(config))
run_command(['/lib/netplan/generate'])
run_command(['systemctl', 'restart', 'systemd-networkd'])
while 'default' not in netifaces.gateways():
time.sleep(0.1)