Set osmo-ggsn ipv6 link-local addr and enable ipv6 ctx activate test

osmo-ggsn requires a link-local IPv6 address to be added to the
tun interface, otherwise the apn will not be configured correctly and it
won't be able to allocate addresses from the ipv6 pool later on.
Some OS don't support autoconfiguring link-local IPv6 addresses when the
interface is brought up (some linux versions are known to fail at it).
This is the case for our Prod osmo-gsm-tester setup (running debian8
with kernel 3.16.51).

Make sure we configure correctly the interface by forcing osmo-ggsn to
set on the interface and use a specific IPv6 link-local address. This is
done by using the "ipv6 link-local" vty cmd in osmo-ggsn.

After this modification, we can re-enable ipv6 gprs context creation as
it will work in Prod setup.

Related: OS#2746

Change-Id: Ib291c02a3c57a4189f9c4b1b856109be97ad2a34
This commit is contained in:
Pau Espin 2017-12-13 20:04:09 +01:00
parent c1b3278af8
commit 6641994d8d
2 changed files with 5 additions and 4 deletions

View File

@ -56,6 +56,7 @@ ggsn ggsn0
ipv6 dns 0 2001:4860:4860::8888
ipv6 dns 1 2001:4860:4860::8844
ipv6 ifconfig fde4:8dba:82e1:2000:0:0:0:0/56
ipv6 link-local fe80::1111:1111:1111:1111/64
no shutdown
apn inet46
gtpu-mode tun
@ -69,6 +70,7 @@ ggsn ggsn0
ipv6 dns 0 2001:4860:4860::8888
ipv6 dns 1 2001:4860:4860::8844
ipv6 ifconfig fde4:8dba:82e1:2000:0:0:0:0/56
ipv6 link-local fe80::1111:1111:1111:1112/64
no shutdown
default-apn internet
no shutdown ggsn

View File

@ -52,12 +52,11 @@ sleep(5)
# TODO: send ping to server or open TCP conn with a socket in python
ms.deactivate_context(ctx_id_v4)
# We disable ipv6 for now as osmo-ggsn is failing to create tun ipv6 device in Prod main unit (OS#2746)
# 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)
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)
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)