From 3c385a45877d0c5b9c7fd4430752460ec085202a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 6 Jun 2017 22:04:08 -0700 Subject: mpm: discovery can now be bound to subnet --- mpm/python/usrp_hwd.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mpm/python/usrp_hwd.py') 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 @@ -50,6 +50,12 @@ def setup_arg_parser(): "used instead of whatever else the code may find", 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" \ @@ -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)) -- cgit v1.2.3