enb: include name label and run_addr in enb remote path

this allows to quickly identify the enb host in the logs

Change-Id: I9c979de852a23041e43692e97ebcbfb389b52fdb
This commit is contained in:
Andre Puschmann 2020-12-09 21:40:46 +01:00
parent a7725fcedf
commit bfd3fe659e
1 changed files with 4 additions and 1 deletions

View File

@ -89,7 +89,10 @@ class eNodeB(log.Origin, metaclass=ABCMeta):
if self._gtp_bind_addr is None:
self._gtp_bind_addr = self._run_node.run_addr()
label = conf.get('label', None)
self.set_name('%s_%s' % (name, label if label is not None else self._run_node.run_addr()))
if label is not None:
self.set_name('%s_%s_%s' % (name, label, self._run_node.run_addr()))
else:
self.set_name('%s_%s' % (name, self._run_node.run_addr()))
self._txmode = 0
self._id = None
self._duplex = None