~cyphermox/ubuntu/natty/connman/release-0.64

« back to all changes in this revision

Viewing changes to test/set-ip-method

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2010-11-30 15:51:10 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: mathieu.trudel-lapierre@canonical.com-20101130155110-32g0usyc4jbl131x
New upstream release 0.64.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
bus = dbus.SystemBus()
15
15
path = "/profile/default/" + sys.argv[1]
16
 
service = dbus.Interface(bus.get_object('org.moblin.connman', path),
17
 
                                        'org.moblin.connman.Service')
 
16
service = dbus.Interface(bus.get_object('net.connman', path),
 
17
                                        'net.connman.Service')
18
18
 
19
19
properties = service.GetProperties()
20
20
 
25
25
        ipv4_configuration["Address"] = sys.argv[3]
26
26
if (len(sys.argv) > 4):
27
27
        ipv4_configuration["Netmask"] = sys.argv[4]
28
 
 
 
28
if (len(sys.argv) > 5):
 
29
        ipv4_configuration["Gateway"] = sys.argv[5]
29
30
 
30
31
service.SetProperty("IPv4.Configuration", ipv4_configuration)
31
32
print "New IPv4.Configuration: ", ipv4_configuration