Commit cf62a272 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Put default bridge into constant.

Reviewed-by: iustinp
parent 0006af7d
......@@ -84,3 +84,6 @@ INISECT_INS = "instance"
# common exit codes
EXIT_NOTMASTER = 11
# others
DEFAULT_BRIDGE = "xen-br0"
......@@ -202,15 +202,16 @@ commands = {
default="xenvg",),
make_option("-b", "--bridge", dest="def_bridge",
help="Specify the default bridge name (cluster-wide)"
" to connect the instances to [xen-br0]",
" to connect the instances to [%s]" %
constants.DEFAULT_BRIDGE,
metavar="BRIDGE",
default="xen-br0",),
default=constants.DEFAULT_BRIDGE,),
make_option("--master-netdev", dest="master_netdev",
help="Specify the node interface (cluster-wide)"
" on which the master IP address will be added "
" [xen-br0]",
" on which the master IP address will be added "
" [%s]" % constants.DEFAULT_BRIDGE,
metavar="NETDEV",
default="xen-br0",),
default=constants.DEFAULT_BRIDGE,),
],
"[opts...] <cluster_name>",
"Initialises a new cluster configuration"),
......
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