On Tue, May 5, 2009 at 12:35 PM, Guido Trotter <[email protected]> wrote: > This allows ganeti-noded to bind only on one interface rather than all > the ones on the machine. The default behaviour doesn't change. >
(this can still go into next) > Signed-off-by: Guido Trotter <[email protected]> > --- > daemons/ganeti-noded | 8 ++++++-- > 1 files changed, 6 insertions(+), 2 deletions(-) > > diff --git a/daemons/ganeti-noded b/daemons/ganeti-noded > index 3a2b4a0..9600e30 100755 > --- a/daemons/ganeti-noded > +++ b/daemons/ganeti-noded > @@ -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" % > constants.RELEASE_VERSION) > > @@ -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) > server.Start() > try: > -- > 1.5.6.5 > > -- Guido Trotter Google - Sysops Team Google Ireland Ltd. : Registered in Ireland with company number 368047. Gordon House, Barrow Street, Dublin 4, Ireland.
