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/.

srs_andre gerrit-no-reply at lists.osmocom.org
Wed Jul 8 11:02:28 UTC 2020


srs_andre has uploaded this change for review. ( 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(-)



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

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: 1
Gerrit-Owner: srs_andre <andre at softwareradiosystems.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200708/5ed5a613/attachment.htm>


More information about the gerrit-log mailing list