Commit c5e489f7 authored by Iustin Pop's avatar Iustin Pop
Browse files

Move the default MAC prefix to the constants file

Instead of having the default live in the gnt-cluster script, we move it
to the constants file. The patch also fixes a typo on constants.py.

Reviewed-by: ultrotter
parent 6b12959c
......@@ -242,6 +242,7 @@ GANETI_RUNAS = "root"
DEFAULT_VG = "xenvg"
BIND_ADDRESS_GLOBAL = "0.0.0.0"
MIN_VG_SIZE = 20480
DEFAULT_MAC_PREFIX = "aa:00:00"
# RPC constants
(RPC_ENCODING_NONE,
......@@ -401,7 +402,7 @@ ELOG_PROGRESS = "progress"
RAPI_ENABLE = True
RAPI_PORT = 5080
# max dynamnic devices
# max dynamic devices
MAX_NICS = 8
MAX_DISKS = 16
......
......@@ -541,7 +541,7 @@ commands = {
help="Specify the mac prefix for the instance IP"
" addresses, in the format XX:XX:XX",
metavar="PREFIX",
default="aa:00:00",),
default=constants.DEFAULT_MAC_PREFIX,),
make_option("-g", "--vg-name", dest="vg_name",
help="Specify the volume group name "
" (cluster-wide) for disk allocation [xenvg]",
......
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