aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_hwd.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python/usrp_hwd.py')
-rwxr-xr-xmpm/python/usrp_hwd.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/mpm/python/usrp_hwd.py b/mpm/python/usrp_hwd.py
index 8abc89923..c44f3a109 100755
--- a/mpm/python/usrp_hwd.py
+++ b/mpm/python/usrp_hwd.py
@@ -51,6 +51,12 @@ def setup_arg_parser():
default=None
)
parser.add_argument(
+ '--discovery-addr',
+ help="Bind discovery socket to this address only. Defaults to all " \
+ "addresses.",
+ default="0.0.0.0",
+ )
+ parser.add_argument(
'--default-args',
help="Provide a comma-separated list of key=value pairs that are" \
"used as defaults for device initialization.",
@@ -122,7 +128,8 @@ def main():
return True
log.info("Spawning discovery process...")
_PROCESSES.append(
- mpm.spawn_discovery_process(discovery_info, shared))
+ mpm.spawn_discovery_process(discovery_info, shared, args.discovery_addr)
+ )
log.info("Spawning RPC process...")
_PROCESSES.append(
mpm.spawn_rpc_process(mpm.mpmtypes.MPM_RPC_PORT, shared, mgr))