diff options
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/usrp_mpm/sys_utils/net.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/sys_utils/net.py b/mpm/python/usrp_mpm/sys_utils/net.py index 1b6ddd2c1..61b9f2c91 100644 --- a/mpm/python/usrp_mpm/sys_utils/net.py +++ b/mpm/python/usrp_mpm/sys_utils/net.py @@ -12,6 +12,9 @@ from six import iteritems from pyroute2 import IPRoute, IPDB from usrp_mpm.mpmlog import get_logger +def get_hostname(): + """Return the current device's hostname""" + return socket.gethostname() def get_valid_interfaces(iface_list): """ |