summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-04-04 11:38:40 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-04-17 13:36:55 +0300
commitaf6e73b30d4018937c26c50de16340f9834c797b (patch)
treeaad7c14ea02c136d0cb0bcadb4e0d7a980b1e526
parent6cf81b0652496e6a0f2ef34207f333ec2bedf52a (diff)
downloadconnman-af6e73b30d4018937c26c50de16340f9834c797b.tar.gz
connman-af6e73b30d4018937c26c50de16340f9834c797b.tar.bz2
connman-af6e73b30d4018937c26c50de16340f9834c797b.zip
test: Remove set-address script
The script is quite useless because it changes the IP address settings of all found services. The IP settings will be the same for every service which is probably not what the user wants. The set-ipv4-method and set-ipv6-method scripts can be used by the user instead of set-address because those two scripts will only change settings of one service.
-rw-r--r--Makefile.am2
-rwxr-xr-xtest/set-address45
2 files changed, 1 insertions, 46 deletions
diff --git a/Makefile.am b/Makefile.am
index a2d5ce08..59223648 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -202,7 +202,7 @@ unit_objects += $(unit_nat_ippool_OBJECTS)
endif
test_scripts = test/get-state test/list-services \
- test/monitor-services test/set-address test/test-clock \
+ test/monitor-services test/test-clock \
test/simple-agent test/show-introspection test/test-compat \
test/test-manager test/test-connman test/monitor-connman \
test/connect-vpn test/disconnect-vpn test/monitor-manager \
diff --git a/test/set-address b/test/set-address
deleted file mode 100755
index 92016784..00000000
--- a/test/set-address
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/python
-
-import sys
-import dbus
-
-if (len(sys.argv) < 3):
- print "Usage: %s <address> <netmask | prefix length> <gateway> [version]" % (sys.argv[0])
- sys.exit(1)
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object('net.connman', "/"),
- 'net.connman.Manager')
-
-properties = manager.GetProperties()
-
-for path in properties["Services"]:
- service = dbus.Interface(bus.get_object('net.connman', path),
- 'net.connman.Service')
-
- properties = service.GetProperties()
-
-
-
- if (len(sys.argv) == 5 and sys.argv[4] == "ipv6"):
- ipv = 6
- else:
- ipv = 4
-
- print "Setting IPv%d address %s for %s" % (ipv, sys.argv[1], path)
-
- if (ipv == 4):
- service.SetProperty("IPv4.Configuration",
- { "Method": "manual",
- "Address": sys.argv[1],
- "Netmask": sys.argv[2],
- "Gateway": sys.argv[3]})
- else:
- service.SetProperty("IPv6.Configuration",
- { "Method": "manual",
- "Address": sys.argv[1],
- "PrefixLength": sys.argv[2],
- "Gateway": sys.argv[3]})
-
- print