Commit cf192249 authored by Guido Trotter's avatar Guido Trotter
Browse files

ganeti-noded: add bind address option

This allows ganeti-noded to bind only on one interface rather than all
the ones on the machine. The default behaviour doesn't change.
Signed-off-by: default avatarGuido Trotter <>
parent 01e2ce3a
......@@ -721,7 +721,7 @@ def ParseOptions():
parser = OptionParser(description="Ganeti node daemon",
usage="%prog [-f] [-d]",
usage="%prog [-f] [-d] [-b ADDRESS]",
version="%%prog (ganeti) %s" %
......@@ -731,6 +731,10 @@ def ParseOptions():
parser.add_option("-d", "--debug", dest="debug",
help="Enable some debug messages",
default=False, action="store_true")
parser.add_option("-b", "--bind", dest="bind_address",
help="Bind address",
default="", metavar="ADDRESS")
options, args = parser.parse_args()
return options, args
......@@ -781,7 +785,7 @@ def main():
queue_lock = jstore.InitAndVerifyQueue(must_lock=False)
mainloop = daemon.Mainloop()
server = NodeHttpServer(mainloop, "", port,
server = NodeHttpServer(mainloop, options.bind_address, port,
ssl_params=ssl_params, ssl_verify_peer=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment