This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17814 ) Change subject: enb: add optional gtp_bind_addr paramter to enb class ...................................................................... enb: add optional gtp_bind_addr paramter to enb class this allows to optionally specify a the GTP bind_address for a enb object in the resources.conf this address is then used for binding the listening socket for gtp connections which, in turn, allows to run the enb and epc on the same host. when gtp_bind_addr is not specified, addr is used by default this is especially useful if eNB and EPC run on the same host and ZMQ is used for RF between eNB and UE. Two eNB addresses are needed in this case, one bind address and one "remote-accessable" address for the UEs ZMQ radio to connect to Change-Id: I4fe38f31401428ed3e74e1d0b64960f0af122d37 --- M src/osmo_gsm_tester/obj/enb.py M src/osmo_gsm_tester/resource.py M src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl M src/osmo_gsm_tester/templates/srsenb.conf.tmpl 4 files changed, 7 insertions(+), 2 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved diff --git a/src/osmo_gsm_tester/obj/enb.py b/src/osmo_gsm_tester/obj/enb.py index bb5053f..d1f8687 100644 --- a/src/osmo_gsm_tester/obj/enb.py +++ b/src/osmo_gsm_tester/obj/enb.py @@ -32,6 +32,9 @@ self._addr = conf.get('addr', None) if self._addr is None: raise log.Error('addr not set') + self._gtp_bind_addr = conf.get('gtp_bind_addr', None) + if self._gtp_bind_addr is None: + self._gtp_bind_addr = self._addr self.set_name('%s_%s' % (name, self._addr)) self._txmode = 0 self._num_prb = 0 @@ -52,6 +55,7 @@ config.overlay(values, dict(enb={ 'num_ports': self.num_ports() })) assert self._epc is not None config.overlay(values, dict(enb={ 'mme_addr': self._epc.addr() })) + config.overlay(values, dict(enb={ 'gtp_bind_addr': self._gtp_bind_addr })) return values def num_ports(self): diff --git a/src/osmo_gsm_tester/resource.py b/src/osmo_gsm_tester/resource.py index 61f2b11..bcdbb94 100644 --- a/src/osmo_gsm_tester/resource.py +++ b/src/osmo_gsm_tester/resource.py @@ -88,6 +88,7 @@ 'enb[].type': schema.STR, 'enb[].remote_user': schema.STR, 'enb[].addr': schema.IPV4, + 'enb[].gtp_bind_addr': schema.IPV4, 'enb[].num_prb': schema.UINT, 'enb[].transmission_mode': schema.LTE_TRANSMISSION_MODE, 'enb[].num_cells': schema.UINT, diff --git a/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl b/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl index d87e66a..a56e58d 100644 --- a/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl +++ b/src/osmo_gsm_tester/templates/amarisoft_enb.cfg.tmpl @@ -48,7 +48,7 @@ ], /* GTP bind address (=address of the ethernet interface connected to the MME). Must be modified if the MME runs on a different host. */ - gtp_addr: "${enb.addr}", + gtp_addr: "${enb.gtp_bind_addr}", /* high 20 bits of SIB1.cellIdentifier */ enb_id: 0x19B, diff --git a/src/osmo_gsm_tester/templates/srsenb.conf.tmpl b/src/osmo_gsm_tester/templates/srsenb.conf.tmpl index df12762..94e724b 100644 --- a/src/osmo_gsm_tester/templates/srsenb.conf.tmpl +++ b/src/osmo_gsm_tester/templates/srsenb.conf.tmpl @@ -23,7 +23,7 @@ mcc = ${enb.mcc} mnc = ${enb.mnc} mme_addr = ${enb.mme_addr} -gtp_bind_addr = ${enb.addr} +gtp_bind_addr = ${enb.gtp_bind_addr} s1c_bind_addr = ${enb.addr} n_prb = ${enb.num_prb} tm = ${enb.transmission_mode} -- To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/17814 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-gsm-tester Gerrit-Branch: master Gerrit-Change-Id: I4fe38f31401428ed3e74e1d0b64960f0af122d37 Gerrit-Change-Number: 17814 Gerrit-PatchSet: 3 Gerrit-Owner: srs_andre <andre at softwareradiosystems.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-Reviewer: srs_andre <andre at softwareradiosystems.com> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200416/b010e700/attachment.htm>