forked from ispras/vmemperor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xenadapter.py
executable file
·83 lines (44 loc) · 1013 Bytes
/
xenadapter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import XenAPI
import json
import hooks
import provision
class XenAdapter:
def __init__(self):
"""creates session connection to XenAPI. Connects using admin login/password from settings"""
return
def list_pools(self):
return
def list_vms(self):
return
def list_vdis(self):
return
def create_vdi(self):
return
def list_networks(self):
return
def create_network(self):
return
def create_vm(self):
return
def start_stop_vm(self):
return
def get_vnc(self):
return
def create_vbd(self):
return
def attach_vbd(self):
return
def detach_vbd(self):
return
def destroy_vbd(self):
return
def destroy_vm(self):
return
def destroy_vdi(self):
return
def connect_vm(self):
return
def list_templates(self):
return
def enable_disable_template(self):
return