Change in osmo-gsm-tester[master]: resource: Fix next_zmq_port_range using bvci file name

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.org
Thu Dec 17 14:51:49 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/21762 )


Change subject: resource: Fix next_zmq_port_range using bvci file name
......................................................................

resource: Fix next_zmq_port_range using bvci file name

Change-Id: I293b7de1066ea69ccb0e495a69602ed56810018d
---
M src/osmo_gsm_tester/core/resource.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/62/21762/1

diff --git a/src/osmo_gsm_tester/core/resource.py b/src/osmo_gsm_tester/core/resource.py
index 223a8f9..a0ec552 100644
--- a/src/osmo_gsm_tester/core/resource.py
+++ b/src/osmo_gsm_tester/core/resource.py
@@ -219,7 +219,7 @@
         # Allocate continuous num_ports port between 2000 and 2200. returns base port.
         # Assumption: base port is always an odd number.
         num_ports = num_ports if num_ports % 2 == 0 else num_ports + 1
-        base_port = self.next_persistent_value('bvci', '2000', schema.uint16,
+        base_port = self.next_persistent_value('zmq_port', '2000', schema.uint16,
                                                lambda x: str(int(x)+num_ports) if int(x) < 2200 - num_ports else '2000', origin)
         return int(base_port)
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/21762
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: I293b7de1066ea69ccb0e495a69602ed56810018d
Gerrit-Change-Number: 21762
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201217/2d5066f6/attachment.htm>


More information about the gerrit-log mailing list