Add the libvirt module

This commit is contained in:
Thomas S Hatch 2011-03-15 16:52:49 -06:00
parent 386d763d04
commit 03e9861a83

22
salt/modules/libvirt.py Normal file
View File

@ -0,0 +1,22 @@
'''
Work with vitual machines managed by libvirt
'''
# Import Python Libs
import os
import sub_process
import libvirt
import subprocess
import StringIO
from xml.dom import minidom
# Import libvirt
import libvirt
VIRT_STATE_NAME_MAP = {
0 : "running",
1 : "running",
2 : "running",
3 : "paused",
4 : "shutdown",
5 : "shutdown",
6 : "crashed"
}