Module cfgupgrade
source code
Library of the tools/cfgupgrade utility.
This code handles only the types supported by simplejson. As an
example, 'set' is a 'list'.
|
|
|
OrFail(description=None)
Make failure non-fatal and improve reporting. |
source code
|
|
|
TARGET_MAJOR = 2
Target major version we will upgrade to
|
|
TARGET_MINOR = 15
Target minor version we will upgrade to
|
|
DOWNGRADE_MAJOR = 2
Target major version for downgrade
|
|
DOWNGRADE_MINOR = 14
Target minor version for downgrade
|
|
DEV_TYPE_OLD_NEW = {"lvm": constants.DT_PLAIN, "drbd8": consta...
|
|
DEV_TYPE_NEW_OLD = dict((v, k) for k, v in DEV_TYPE_OLD_NEW.it...
|
Imports:
copy,
os,
sys,
logging,
optparse,
time,
functools,
StringIO,
cli,
constants,
serializer,
utils,
bootstrap,
config,
pathutils,
netutils,
version
DEV_TYPE_OLD_NEW
- Value:
{"lvm": constants.DT_PLAIN, "drbd8": constants.DT_DRBD8}
|
|
DEV_TYPE_NEW_OLD
- Value:
dict((v, k) for k, v in DEV_TYPE_OLD_NEW.items())
|
|