diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-12-08 18:06:39 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-12-11 23:47:13 +0700 |
commit | 7e9821f2891e2f222c733aa74fb020515bd4691f (patch) | |
tree | 00f4eadfd76faa73f91f9e50ec4834db57e5a247 | |
parent | 63be9da1908910b19fef190ae7d1070281c2dc11 (diff) |
trx_toolkit/ctrl_if_*.py: transparently pass UDPLink arguments
There is no need to (re)define the arguments of UDPLink's constructor.
Let's use non-keyworded variable length argument list (*args).
Change-Id: Ia312a5e15ce88d5f7e8d76c4ea8c93c59d91be5a
-rw-r--r-- | src/target/trx_toolkit/ctrl_if_bb.py | 4 | ||||
-rw-r--r-- | src/target/trx_toolkit/ctrl_if_bts.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/target/trx_toolkit/ctrl_if_bb.py b/src/target/trx_toolkit/ctrl_if_bb.py index 785636b2..fe7f3e89 100644 --- a/src/target/trx_toolkit/ctrl_if_bb.py +++ b/src/target/trx_toolkit/ctrl_if_bb.py @@ -34,8 +34,8 @@ class CTRLInterfaceBB(CTRLInterface): tx_freq = None pm = None - def __init__(self, remote_addr, remote_port, bind_addr, bind_port): - CTRLInterface.__init__(self, remote_addr, remote_port, bind_addr, bind_port) + def __init__(self, *udp_link_args): + CTRLInterface.__init__(self, *udp_link_args) log.info("Init CTRL interface for BB (%s)" % self.desc_link()) def parse_cmd(self, request): diff --git a/src/target/trx_toolkit/ctrl_if_bts.py b/src/target/trx_toolkit/ctrl_if_bts.py index 2dde3e3a..cb38b67c 100644 --- a/src/target/trx_toolkit/ctrl_if_bts.py +++ b/src/target/trx_toolkit/ctrl_if_bts.py @@ -35,8 +35,8 @@ class CTRLInterfaceBTS(CTRLInterface): tx_freq = None pm = None - def __init__(self, remote_addr, remote_port, bind_addr, bind_port): - CTRLInterface.__init__(self, remote_addr, remote_port, bind_addr, bind_port) + def __init__(self, *udp_link_args): + CTRLInterface.__init__(self, *udp_link_args) log.info("Init CTRL interface for BTS (%s)" % self.desc_link()) def parse_cmd(self, request): |