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/.
Pau Espin Pedrol gerrit-no-reply at lists.osmocom.orgPau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/11771 Change subject: iperf3: Allow changing port of iperf3 server ...................................................................... iperf3: Allow changing port of iperf3 server This way several servers can run sharing same IP address. default port variable is moved inside class to be available to tests. Change-Id: Id4eae7cefbb1a18ecf2676f9cb22c60cc91cec7c --- M src/osmo_gsm_tester/iperf3.py 1 file changed, 6 insertions(+), 4 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/71/11771/1 diff --git a/src/osmo_gsm_tester/iperf3.py b/src/osmo_gsm_tester/iperf3.py index 894b10f..d0cf806 100644 --- a/src/osmo_gsm_tester/iperf3.py +++ b/src/osmo_gsm_tester/iperf3.py @@ -22,9 +22,6 @@ from . import log, util, process, pcap_recorder -DEFAULT_SRV_PORT = 5003 - - def iperf3_result_to_json(file): with open(file) as f: # Sometimes iperf3 provides 2 dictionaries, the 2nd one being an error about being interrupted (by us). @@ -37,6 +34,8 @@ class IPerf3Server(log.Origin): + DEFAULT_SRV_PORT = 5003 + def __init__(self, suite_run, ip_address): super().__init__(log.C_RUN, 'iperf3-srv_%s' % ip_address.get('addr')) self.run_dir = None @@ -44,7 +43,7 @@ self.process = None self.suite_run = suite_run self.ip_address = ip_address - self._port = DEFAULT_SRV_PORT + self._port = IPerf3Server.DEFAULT_SRV_PORT def start(self): self.log('Starting iperf3-srv') @@ -62,6 +61,9 @@ self.suite_run.remember_to_stop(self.process) self.process.launch() + def set_port(self, port): + self._port = port + def stop(self): self.suite_run.stop_process(self.process) -- To view, visit https://gerrit.osmocom.org/11771 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-gsm-tester Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Id4eae7cefbb1a18ecf2676f9cb22c60cc91cec7c Gerrit-Change-Number: 11771 Gerrit-PatchSet: 1 Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181114/017de7fa/attachment.htm>