Helper methods that check for hotplug support
[ganeti-local] / lib / constants.py
index f68302e..5cd492e 100644 (file)
@@ -393,6 +393,7 @@ DDM_REMOVE = _constants.DDM_REMOVE
 DDMS_VALUES = _constants.DDMS_VALUES
 DDMS_VALUES_WITH_MODIFY = _constants.DDMS_VALUES_WITH_MODIFY
 
+# common exit codes
 EXIT_SUCCESS = _constants.EXIT_SUCCESS
 EXIT_FAILURE = _constants.EXIT_FAILURE
 EXIT_NOTCLUSTER = _constants.EXIT_NOTCLUSTER
@@ -1576,6 +1577,17 @@ MOND_LATEST_API_VERSION = 1
 UPGRADE_QUEUE_DRAIN_TIMEOUT = _constants.UPGRADE_QUEUE_DRAIN_TIMEOUT
 UPGRADE_QUEUE_POLL_INTERVAL = _constants.UPGRADE_QUEUE_POLL_INTERVAL
 
+# device types to hotplug
+HOTPLUG_TARGET_DISK = _constants.HOTPLUG_TARGET_DISK
+HOTPLUG_TARGET_NIC = _constants.HOTPLUG_TARGET_NIC
+HOTPLUG_ALL_TARGETS = _constants.HOTPLUG_ALL_TARGETS
+
+# hotplug actions
+HOTPLUG_ACTION_ADD = _constants.HOTPLUG_ACTION_ADD
+HOTPLUG_ACTION_REMOVE = _constants.HOTPLUG_ACTION_REMOVE
+HOTPLUG_ACTION_MODIFY = _constants.HOTPLUG_ACTION_MODIFY
+HOTPLUG_ALL_ACTIONS = _constants.HOTPLUG_ALL_ACTIONS
+
 # other constants
 
 HAS_GNU_LN = _constants.HAS_GNU_LN