diff options
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)
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.
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 := ""
# GGSN IP address
GGSN_Tests.m_ggsn_ip_gtpc := ""
GGSN_Tests.m_ggsn_ip_gtpu := ""
+# GGSN announced DNS address
+GGSN_Tests.m_ggsn_ip4_dns1 := ""
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
- ip dns 0
+ ip dns 0
ip dns 1
ip ifconfig
no shutdown