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:
parent
63be9da190
commit
7e9821f289
|
@ -34,8 +34,8 @@ class CTRLInterfaceBB(CTRLInterface):
|
||||||
tx_freq = None
|
tx_freq = None
|
||||||
pm = None
|
pm = None
|
||||||
|
|
||||||
def __init__(self, remote_addr, remote_port, bind_addr, bind_port):
|
def __init__(self, *udp_link_args):
|
||||||
CTRLInterface.__init__(self, remote_addr, remote_port, bind_addr, bind_port)
|
CTRLInterface.__init__(self, *udp_link_args)
|
||||||
log.info("Init CTRL interface for BB (%s)" % self.desc_link())
|
log.info("Init CTRL interface for BB (%s)" % self.desc_link())
|
||||||
|
|
||||||
def parse_cmd(self, request):
|
def parse_cmd(self, request):
|
||||||
|
|
|
@ -35,8 +35,8 @@ class CTRLInterfaceBTS(CTRLInterface):
|
||||||
tx_freq = None
|
tx_freq = None
|
||||||
pm = None
|
pm = None
|
||||||
|
|
||||||
def __init__(self, remote_addr, remote_port, bind_addr, bind_port):
|
def __init__(self, *udp_link_args):
|
||||||
CTRLInterface.__init__(self, remote_addr, remote_port, bind_addr, bind_port)
|
CTRLInterface.__init__(self, *udp_link_args)
|
||||||
log.info("Init CTRL interface for BTS (%s)" % self.desc_link())
|
log.info("Init CTRL interface for BTS (%s)" % self.desc_link())
|
||||||
|
|
||||||
def parse_cmd(self, request):
|
def parse_cmd(self, request):
|
||||||
|
|
Loading…
Reference in New Issue