Activate new network settings after update (#2253)

This commit is contained in:
Joakim Sørensen 2020-11-13 18:15:46 +01:00 committed by GitHub
parent 8d499753a0
commit 7ee5737f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,9 @@ class NetworkManager(CoreSysAttributes):
try:
await inet.settings.update(settings)
await self.sys_dbus.network.activate_connection(
inet.settings.object_path, inet.object_path
)
except DBusError as err:
_LOGGER.error("Can't update config on %s: %s", interface.name, err)
raise HostNetworkError() from err

View File

@ -0,0 +1 @@
()