summaryrefslogtreecommitdiff
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2015-06-08 18:00:35 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2015-06-08 18:00:35 +0200
commitd6f3e84a974cb727c1dae7347688fd2d0f040daa (patch)
tree88db9ddd2a236a6d1578d377e754ae7f54f55d7c
parent6bed32c2455652168e99559e304cdd64e3c4cb9a (diff)
providers:checkbox:bin:create_connection: Reload all connection files from disk
NetworkManager does not monitor changes to connection files by default. So we need to use this command in order to tell NetworkManager to re-read the connection profiles from disk when a change was made to them.
-rwxr-xr-xbin/create_connection1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/create_connection b/bin/create_connection
index 767deb0..71e9572 100755
--- a/bin/create_connection
+++ b/bin/create_connection
@@ -137,6 +137,7 @@ def block_until_created(connection, retries, interval):
stderr=DEVNULL,
universal_newlines=True)
except CalledProcessError:
+ check_call(['nmcli', 'con', 'reload'])
nmcli_con_list = check_output(['nmcli', 'con', 'show'],
stderr=DEVNULL,
universal_newlines=True)