Change in osmo-gsm-tester[master]: rfemu_minicircuits: reset attenuation to zero in dtor

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 Jul 9 13:43:00 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-gsm-tester/+/19186 )

Change subject: rfemu_minicircuits: reset attenuation to zero in dtor
......................................................................

rfemu_minicircuits: reset attenuation to zero in dtor

this avoids issues when the channel emulation stops in the middle
of a high attenuation values and the device is left in this state.

Change-Id: I9aeafc68bf81b8932aac4cb28040b9aea6bfcbdb
---
M src/osmo_gsm_tester/obj/rfemu_minicircuits.py
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo_gsm_tester/obj/rfemu_minicircuits.py b/src/osmo_gsm_tester/obj/rfemu_minicircuits.py
index 6214040..c501dcf 100644
--- a/src/osmo_gsm_tester/obj/rfemu_minicircuits.py
+++ b/src/osmo_gsm_tester/obj/rfemu_minicircuits.py
@@ -42,6 +42,10 @@
             raise log.Error('No "port" attribute provided in supply conf!')
         self.set_name('minicircuits(%s:%r)' % (self.addr, self.ports))
 
+    def __del__(self):
+        self.dbg('Resetting channel attenuation to zero')
+        self.set_attenuation(0)
+
     def _url_prefix(self):
         #http://10.12.1.216/:SetAttPerChan:1:0_2:0_3:0_4:0
         return 'http://' + self.addr

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-tester/+/19186
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: I9aeafc68bf81b8932aac4cb28040b9aea6bfcbdb
Gerrit-Change-Number: 19186
Gerrit-PatchSet: 3
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200709/c0387999/attachment.htm>


More information about the gerrit-log mailing list