Skip to content
Snippets Groups Projects
Commit cf62a272 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Put default bridge into constant.

Reviewed-by: iustinp
parent 0006af7d
No related branches found
No related tags found
No related merge requests found
...@@ -84,3 +84,6 @@ INISECT_INS = "instance" ...@@ -84,3 +84,6 @@ INISECT_INS = "instance"
# common exit codes # common exit codes
EXIT_NOTMASTER = 11 EXIT_NOTMASTER = 11
# others
DEFAULT_BRIDGE = "xen-br0"
...@@ -202,15 +202,16 @@ commands = { ...@@ -202,15 +202,16 @@ commands = {
default="xenvg",), default="xenvg",),
make_option("-b", "--bridge", dest="def_bridge", make_option("-b", "--bridge", dest="def_bridge",
help="Specify the default bridge name (cluster-wide)" 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", metavar="BRIDGE",
default="xen-br0",), default=constants.DEFAULT_BRIDGE,),
make_option("--master-netdev", dest="master_netdev", make_option("--master-netdev", dest="master_netdev",
help="Specify the node interface (cluster-wide)" help="Specify the node interface (cluster-wide)"
" on which the master IP address will be added " " on which the master IP address will be added "
" [xen-br0]", " [%s]" % constants.DEFAULT_BRIDGE,
metavar="NETDEV", metavar="NETDEV",
default="xen-br0",), default=constants.DEFAULT_BRIDGE,),
], ],
"[opts...] <cluster_name>", "[opts...] <cluster_name>",
"Initialises a new cluster configuration"), "Initialises a new cluster configuration"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment