aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/ethdispatch.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2022-05-18 10:42:26 +0200
committerskooNI <60897865+skooNI@users.noreply.github.com>2022-07-20 15:57:20 -0500
commit44c50ff370c79eed7c6455c77e2b91b7488c554e (patch)
tree4af8cda946901282a03e1f978fe52ecfa57248bf /mpm/python/usrp_mpm/ethdispatch.py
parente786178db9c2b3ee723083fbcfb16f66ef7dc4b6 (diff)
downloaduhd-44c50ff370c79eed7c6455c77e2b91b7488c554e.tar.gz
uhd-44c50ff370c79eed7c6455c77e2b91b7488c554e.tar.bz2
uhd-44c50ff370c79eed7c6455c77e2b91b7488c554e.zip
mpm: udp: Fix Pylint warnings in UDP-related files
Fixes long lines, missing docstrings, and deprecated Pythonisms from ethdispatch.py and xportmgr_udp.py.
Diffstat (limited to 'mpm/python/usrp_mpm/ethdispatch.py')
-rw-r--r--mpm/python/usrp_mpm/ethdispatch.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/mpm/python/usrp_mpm/ethdispatch.py b/mpm/python/usrp_mpm/ethdispatch.py
index 32c4e1cef..a60cf9604 100644
--- a/mpm/python/usrp_mpm/ethdispatch.py
+++ b/mpm/python/usrp_mpm/ethdispatch.py
@@ -7,27 +7,26 @@
Ethernet dispatcher table control
"""
-from builtins import str
-from builtins import object
import netaddr
from usrp_mpm.mpmlog import get_logger
from usrp_mpm.sys_utils.uio import UIO
-
-class EthDispatcherCtrl(object):
+class EthDispatcherCtrl:
"""
Controls an Ethernet dispatcher.
"""
DEFAULT_VITA_PORT = (49153, 49154)
# Address offsets:
- ETH_IP_OFFSET = 0x0000
- ETH_PORT_OFFSET = 0x0004
- FORWARD_ETH_BCAST_OFFSET = 0x0008
+ # pylint: disable=bad-whitespace
+ ETH_IP_OFFSET = 0x0000
+ ETH_PORT_OFFSET = 0x0004
+ FORWARD_ETH_BCAST_OFFSET = 0x0008
BRIDGE_INTERNAL_MAC_LO_OFFSET = 0x0010
BRIDGE_INTERNAL_MAC_HI_OFFSET = 0x0014
- BRIDGE_INTERNAL_IP_OFFSET = 0x0018
- BRIDGE_INTERNAL_PORT_OFFSET = 0x001c
+ BRIDGE_INTERNAL_IP_OFFSET = 0x0018
+ BRIDGE_INTERNAL_PORT_OFFSET = 0x001c
BRIDGE_INTERNAL_ENABLE_OFFSET = 0x0020
+ # pylint: enable=bad-whitespace
def __init__(self, label):