diff options
author | Hu Tao <hutao@cn.fujitsu.com> | 2011-06-08 14:33:33 +0800 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-06-13 14:17:16 -0600 |
commit | bd04537e4c8b1847adb9f27304268e688e966c46 (patch) | |
tree | e10c7e159d993773de448dcd1651146b6ddf0578 /generator.py | |
parent | e360d2ef588b4f57a4c7e74aa1c9177f15445a92 (diff) | |
download | libvirt-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-x | generator.py | 6 |
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 ####################################################################### |