aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/periph_manager/net.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-04-19 18:45:29 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:45 -0800
commit285f14392b4494501b462796743e67cc54c4cca8 (patch)
treee680bf89d33f73b58f515bb9558a4c3db6ec07f5 /mpm/python/usrp_mpm/periph_manager/net.py
parentb05f72f339dcb02cc6efc6f2bc7d92c4476b5cc9 (diff)
downloaduhd-285f14392b4494501b462796743e67cc54c4cca8.tar.gz
uhd-285f14392b4494501b462796743e67cc54c4cca8.tar.bz2
uhd-285f14392b4494501b462796743e67cc54c4cca8.zip
mpm: Moved over to new logging infrastructure
Also currently hardcodes some settings.
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/net.py')
-rw-r--r--mpm/python/usrp_mpm/periph_manager/net.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/net.py b/mpm/python/usrp_mpm/periph_manager/net.py
index 2df771549..4eb1890cb 100644
--- a/mpm/python/usrp_mpm/periph_manager/net.py
+++ b/mpm/python/usrp_mpm/periph_manager/net.py
@@ -20,10 +20,7 @@ N310 implementation module
import itertools
import socket
from pyroute2 import IPRoute
-from logging import getLogger
-
-LOG = getLogger(__name__)
-
+from ..mpmlog import get_logger
def get_iface_addrs(mac_addr):
"""
@@ -57,7 +54,7 @@ def get_mac_addr(remote_addr):
ip2 = IPRoute()
addrs = ip2.get_neighbours(dst=remote_addr)
if len(addrs) > 1:
- LOG.warning("More than one device with the same IP address found. Picking entry at random")
+ get_logger('get_mac_addr').warning("More than one device with the same IP address found. Picking entry at random")
if not addrs:
return None
return addrs[0].get_attr('NDA_LLADDR')