test: Remove APN support from test-connman
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 18 Feb 2011 14:16:31 +0000 (15:16 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 18 Feb 2011 14:16:31 +0000 (15:16 +0100)
test/test-connman

index c0a462db056cab4b6cf8da89df1b4be06bd4c614..9a855fb72886e5134ad6b8c3329d88568659b414 100755 (executable)
@@ -13,7 +13,6 @@ if len(sys.argv) < 2:
        print ""
        print "  state"
        print "  services"
-       print "  apn <service> [apn]"
        print "  passphrase <service> [passphrase]"
        print "  autoconnect <service> [autoconnect]"
        print "  connect <service>"
@@ -57,37 +56,6 @@ elif sys.argv[1] in ["services", "list", "show"]:
 
        print_services(properties["Services"])
 
-elif sys.argv[1] in ["apn"]:
-       if (len(sys.argv) < 3):
-               print "Need at least service parameter"
-               sys.exit(1)
-
-       path = "/profile/default/" + sys.argv[2]
-
-       service = dbus.Interface(bus.get_object("net.connman", path),
-                                               "net.connman.Service")
-
-       if (len(sys.argv) > 3):
-               apn = sys.argv[3]
-
-               service.SetProperty("APN", apn);
-
-               print "APN %s set for %s" % (apn, sys.argv[2])
-       else:
-               properties = service.GetProperties()
-
-               if "Name" in properties.keys():
-                       name = properties["Name"]
-               else:
-                       name = "{" + properties["Type"] + "}"
-
-               if "APN" in properties.keys():
-                       apn = properties["APN"]
-               else:
-                       apn = "not set"
-
-               print "APN for %s is %s" % (name, apn)
-
 elif sys.argv[1] in ["passphrase", "pass"]:
        if (len(sys.argv) < 3):
                print "Need at least service parameter"