aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-02-19 12:12:04 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-02-19 12:12:06 +0100
commitbd41d245635585a5723c664992c91ed1bb31fcb2 (patch)
treea5eba781f2961165bd2618e8aa3106f461a46cb6
parent56276f95fd0779e4e2c87ad32454793f764c214c (diff)
ggsn-test: Use ggsn local ip as announced DNS
This way the address is reachable for ggsn system and can route the packet correctly. This commit fixes runtime failures of GGSN_Tests.TC_pdp4_act_deact_gtpu_access when running inside the container, since that test uses the DNS address to attempt a ping and waits for a response. If the address is non reachable/routable from osmo-ggsn tun, then the packet is dropped by the kernel and no ping response is sent back.
-rw-r--r--ggsn-test/GGSN_Tests.cfg2
-rw-r--r--ggsn-test/osmo-ggsn.cfg2
2 files changed, 3 insertions, 1 deletions
diff --git a/ggsn-test/GGSN_Tests.cfg b/ggsn-test/GGSN_Tests.cfg
index da56a1b..d832853 100644
--- a/ggsn-test/GGSN_Tests.cfg
+++ b/ggsn-test/GGSN_Tests.cfg
@@ -14,5 +14,7 @@ GGSN_Tests.m_bind_ip_gtpu := "172.18.3.202"
# GGSN IP address
GGSN_Tests.m_ggsn_ip_gtpc := "172.18.3.201"
GGSN_Tests.m_ggsn_ip_gtpu := "172.18.3.201"
+# GGSN announced DNS address
+GGSN_Tests.m_ggsn_ip4_dns1 := "172.18.3.201"
[EXECUTE]
diff --git a/ggsn-test/osmo-ggsn.cfg b/ggsn-test/osmo-ggsn.cfg
index ad9bc22..5f03bc3 100644
--- a/ggsn-test/osmo-ggsn.cfg
+++ b/ggsn-test/osmo-ggsn.cfg
@@ -71,7 +71,7 @@ ggsn ggsn0
tun-device tun4
type-support v4
ip prefix dynamic 176.16.222.0/24
- ip dns 0 192.168.100.1
+ ip dns 0 172.18.3.201
ip dns 1 8.8.8.8
ip ifconfig 176.16.222.0/24
no shutdown