diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-06-06 22:04:08 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:59 -0800 |
commit | 3c385a45877d0c5b9c7fd4430752460ec085202a (patch) | |
tree | 8b699f6ab5f34b9851ef54c69edcb5cf257f77e9 /mpm/python/usrp_hwd.py | |
parent | bf4ff21ce6341f72b72a217d20063878b1b9ecc0 (diff) | |
download | uhd-3c385a45877d0c5b9c7fd4430752460ec085202a.tar.gz uhd-3c385a45877d0c5b9c7fd4430752460ec085202a.tar.bz2 uhd-3c385a45877d0c5b9c7fd4430752460ec085202a.zip |
mpm: discovery can now be bound to subnet
Diffstat (limited to 'mpm/python/usrp_hwd.py')
-rwxr-xr-x | mpm/python/usrp_hwd.py | 9 |
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)) |