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
This commit is contained in:
Vadim Yanitskiy 2018-12-08 18:06:39 +07:00
parent 63be9da190
commit 7e9821f289
2 changed files with 4 additions and 4 deletions

View File

@ -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):

View File

@ -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):