6 if (len(sys.argv) < 2):
7 print("Usage: %s <service> [domain*]" % (sys.argv[0]))
10 bus = dbus.SystemBus()
11 path = "/net/connman/service/" + sys.argv[1]
12 service = dbus.Interface(bus.get_object('net.connman', path),
13 'net.connman.Service')
15 properties = service.GetProperties()
17 print("Setting domains to %s" % (sys.argv[2:]))
19 service.SetProperty("Domains.Configuration",
20 dbus.Array(sys.argv[2:], signature=dbus.Signature('s')))