Re: Update settings on a NM.RemoteConnection with python
- From: infirit <infirit gmail com>
- To: networkmanager-list <networkmanager-list gnome org>
- Subject: Re: Update settings on a NM.RemoteConnection with python
- Date: Wed, 22 Aug 2018 10:44:38 +0000
Op 20-08-18 om 09:03 schreef Beniamino Galvani:
c = client.get_connection_by_id(id)
s_gsm = c.get_setting_gsm()
s_gsm.set_property(NM.SETTING_GSM_APN, "xyz")
try:
c.commit_changes(True, None)
print("The connection profile has been updated.")
except Exception as e:
sys.stderr.write("Error: %s\n" % e)
I did something similar before but without the commit so went looking
for other options :(.
Thanks for the example.
~infirit
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]