aboutsummaryrefslogtreecommitdiffstats
path: root/suites
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-12-12 16:42:45 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2017-12-12 16:44:00 +0100
commitfd150fbb66e7d1266262b83ca29931432310bd3f (patch)
treeb016012a8947d7b974b59da9518ca438e5948f59 /suites
parentd22b8460e58368778e6aab546869c2eca650d8ec (diff)
suites: gprs: Use inet46 APN due to ofono using IPv4v6 ctx request
Otherwise osmo-ggsn tries to allocate one IP of each type but fails because the other APNs are ipv4-only or ipv6-only. Change-Id: I53baa63dc1b83616a35af182cb6f56ee3d7fe38b
Diffstat (limited to 'suites')
-rwxr-xr-xsuites/gprs/ping.py20
1 files changed, 15 insertions, 5 deletions
diff --git a/suites/gprs/ping.py b/suites/gprs/ping.py
index 46ab540..f6f01a6 100755
--- a/suites/gprs/ping.py
+++ b/suites/gprs/ping.py
@@ -44,11 +44,21 @@ wait(msc.subscriber_attached, ms)
print('waiting for modems to attach to data services...')
wait(ms.is_attached)
-ctx_id_v4 = ms.activate_context(apn='internet', protocol=ms.CTX_PROT_IPv4)
-# IPv6 no supported in EC20: org.ofono.Error.NotImplemented: Implementation not provided (36)
-# ctx_id_v6 = ms.activate_context(apn='inet6', protocol=ms.CTX_PROT_IPv6)
-# IPv46 (dual) not supported in EC20: org.ofono.Error.Failed: Operation failed (36)
-# ctx_id_v46 = ms.activate_context(apn='inet6', protocol=ms.CTX_PROT_IPv46)
+
+# We need to use inet46 since ofono qmi only uses ipv4v6 eua (OS#2713)
+ctx_id_v4 = ms.activate_context(apn='inet46', protocol=ms.CTX_PROT_IPv4)
sleep(5)
# TODO: send ping to server or open TCP conn with a socket in python
ms.deactivate_context(ctx_id_v4)
+
+# We need to use inet46 since ofono qmi only uses ipv4v6 eua (OS#2713)
+ctx_id_v6 = ms.activate_context(apn='inet46', protocol=ms.CTX_PROT_IPv6)
+sleep(5)
+# TODO: send ping to server or open TCP conn with a socket in python
+ms.deactivate_context(ctx_id_v6)
+
+# IPv46 (dual) not supported in ofono qmi: org.ofono.Error.Failed: Operation failed (36)
+# ctx_id_v46 = ms.activate_context(apn='inet46', protocol=ms.CTX_PROT_IPv46)
+# sleep(5)
+# TODO: send ping to server or open TCP conn with a socket in python
+# ms.deactivate_context(ctx_id_v46)