summaryrefslogtreecommitdiffstats
path: root/generator.py
diff options
context:
space:
mode:
authorHu Tao <hutao@cn.fujitsu.com>2011-06-08 14:33:33 +0800
committerEric Blake <eblake@redhat.com>2011-06-13 14:17:16 -0600
commitbd04537e4c8b1847adb9f27304268e688e966c46 (patch)
treee10c7e159d993773de448dcd1651146b6ddf0578 /generator.py
parente360d2ef588b4f57a4c7e74aa1c9177f15445a92 (diff)
downloadlibvirt-python-v6-bd04537e4c8b1847adb9f27304268e688e966c46.tar.gz
libvirt-python-v6-bd04537e4c8b1847adb9f27304268e688e966c46.tar.xz
libvirt-python-v6-bd04537e4c8b1847adb9f27304268e688e966c46.zip
Deprecate several CURRENT/LIVE/CONFIG enums
This patch deprecates following enums: VIR_DOMAIN_MEM_CURRENT VIR_DOMAIN_MEM_LIVE VIR_DOMAIN_MEM_CONFIG VIR_DOMAIN_VCPU_LIVE VIR_DOMAIN_VCPU_CONFIG VIR_DOMAIN_DEVICE_MODIFY_CURRENT VIR_DOMAIN_DEVICE_MODIFY_LIVE VIR_DOMAIN_DEVICE_MODIFY_CONFIG And modify internal codes to use virDomainModificationImpact.
Diffstat (limited to 'generator.py')
-rwxr-xr-xgenerator.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/generator.py b/generator.py
index 7c38fdd..2cbe168 100755
--- a/generator.py
+++ b/generator.py
@@ -166,6 +166,12 @@ def enum(type, name, value):
value = 5
elif value == 'VIR_TYPED_PARAM_BOOLEAN':
value = 6
+ elif value == 'VIR_DOMAIN_AFFECT_CURRENT':
+ value = 0
+ elif value == 'VIR_DOMAIN_AFFECT_LIVE':
+ value = 1
+ elif value == 'VIR_DOMAIN_AFFECT_CONFIG':
+ value = 2
enums[type][name] = value
#######################################################################