---
 test/set-ipv6-method | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/set-ipv6-method b/test/set-ipv6-method
index 4f2de09..eb1f1b5 100755
--- a/test/set-ipv6-method
+++ b/test/set-ipv6-method
@@ -6,6 +6,9 @@ import dbus
 def make_variant(string):
        return dbus.String(string, variant_level=1)
 
+def make_byte_variant(string):
+    return dbus.Byte(int(string), variant_level=1)
+
 def print_usage():
        print "Usage: %s <service> off|manual|auto [<address> [prefixlen] 
[gateway]] [<privacy>]" % (sys.argv[0])
 
@@ -30,7 +33,7 @@ else:
        if (len(sys.argv) > 3):
                ipv6_configuration["Address"] = make_variant(sys.argv[3])
        if (len(sys.argv) > 4):
-               ipv6_configuration["PrefixLength"] = make_variant(sys.argv[4])
+               ipv6_configuration["PrefixLength"] = 
make_byte_variant(sys.argv[4])
        if (len(sys.argv) > 5):
                ipv6_configuration["Gateway"] = make_variant(sys.argv[5])
 
-- 
1.7.12

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to