aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osmo_gsm_tester/osmo_hlr.py3
-rw-r--r--src/osmo_gsm_tester/osmo_msc.py1
-rw-r--r--src/osmo_gsm_tester/templates/osmo-msc.cfg.tmpl2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/osmo_gsm_tester/osmo_hlr.py b/src/osmo_gsm_tester/osmo_hlr.py
index 354eb1d..3492f06 100644
--- a/src/osmo_gsm_tester/osmo_hlr.py
+++ b/src/osmo_gsm_tester/osmo_hlr.py
@@ -126,4 +126,7 @@ class OsmoHlr(log.Origin):
% (subscriber_id, modem.imsi(), modem.msisdn))
return subscriber_id
+ def conf_for_msc(self):
+ return dict(hlr=dict(ip_address=self.ip_address))
+
# vim: expandtab tabstop=4 shiftwidth=4
diff --git a/src/osmo_gsm_tester/osmo_msc.py b/src/osmo_gsm_tester/osmo_msc.py
index ca0e246..2ef88df 100644
--- a/src/osmo_gsm_tester/osmo_msc.py
+++ b/src/osmo_gsm_tester/osmo_msc.py
@@ -72,6 +72,7 @@ class OsmoMsc(log.Origin):
config.overlay(values, self.suite_run.config())
config.overlay(values, dict(msc=dict(ip_address=self.ip_address)))
config.overlay(values, self.mgcpgw.conf_for_msc())
+ config.overlay(values, self.hlr.conf_for_msc())
self.dbg('MSC CONFIG:\n' + pprint.pformat(values))
diff --git a/src/osmo_gsm_tester/templates/osmo-msc.cfg.tmpl b/src/osmo_gsm_tester/templates/osmo-msc.cfg.tmpl
index c52d0dc..247365e 100644
--- a/src/osmo_gsm_tester/templates/osmo-msc.cfg.tmpl
+++ b/src/osmo_gsm_tester/templates/osmo-msc.cfg.tmpl
@@ -28,3 +28,5 @@ smpp
esme test
password test
default-route
+hlr
+ remote-ip ${hlr.ip_address.addr}