diff --git a/lib/constants.py b/lib/constants.py index 2a196a72e78e8fece1cbc386a18679160e92b6fe..211d44bf8e358e2031a7c5aa52dca0ed0519c653 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -84,3 +84,6 @@ INISECT_INS = "instance" # common exit codes EXIT_NOTMASTER = 11 + +# others +DEFAULT_BRIDGE = "xen-br0" diff --git a/scripts/gnt-cluster b/scripts/gnt-cluster index 6c9a970bbdb9117835b0c62ef9b50533569c8a09..e941bbef4ad42ee2c1ddec9fbc29146330bb583c 100755 --- a/scripts/gnt-cluster +++ b/scripts/gnt-cluster @@ -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"),