1
+ from typing import Any, Dict
2
+
1
3
# Configuration file, to be adapted to one's needs
2
4
3
5
# Default user and password to connect to a host through XAPI
@@ -15,7 +17,7 @@ HOST_DEFAULT_PASSWORD = ""
15
17
# skip_xo_config allows to not touch XO's configuration regarding the host
16
18
# Else the default behaviour is to add the host to XO servers at the beginning
17
19
# of the testing session and remove it at the end.
18
- HOSTS = {
20
+ HOSTS: Dict[str, Dict[str, Any]] = {
19
21
# "10.0.0.1": {"user": "root", "password": ""},
20
22
# "testhost1": {"user": "root", "password": "", 'skip_xo_config': True},
21
23
}
@@ -106,44 +108,44 @@ DEFAULT_SR = 'default'
106
108
CACHE_IMPORTED_VM = False
107
109
108
110
# Default NFS device config:
109
- NFS_DEVICE_CONFIG = {
111
+ NFS_DEVICE_CONFIG: Dict[str, Dict[str, str]] = {
110
112
# 'server': '10.0.0.2', # URL/Hostname of NFS server
111
113
# 'serverpath': '/path/to/shared/mount' # Path to shared mountpoint
112
114
}
113
115
114
116
# Default NFS4+ only device config:
115
- NFS4_DEVICE_CONFIG = {
117
+ NFS4_DEVICE_CONFIG: Dict[str, Dict[str, str]] = {
116
118
# 'server': '10.0.0.2', # URL/Hostname of NFS server
117
119
# 'serverpath': '/path_to_shared_mount' # Path to shared mountpoint
118
120
# 'nfsversion': '4.1'
119
121
}
120
122
121
123
# Default NFS ISO device config:
122
- NFS_ISO_DEVICE_CONFIG = {
124
+ NFS_ISO_DEVICE_CONFIG: Dict[str, Dict[str, str]] = {
123
125
# 'location': '10.0.0.2:/path/to/shared/mount' # URL/Hostname of NFS server and path to shared mountpoint
124
126
}
125
127
126
128
# Default CIFS ISO device config:
127
- CIFS_ISO_DEVICE_CONFIG = {
129
+ CIFS_ISO_DEVICE_CONFIG: Dict[str, Dict[str, str]] = {
128
130
# 'location': r'\\10.0.0.2\<shared folder name>',
129
131
# 'username': '<user>',
130
132
# 'cifspassword': '<password>',
131
133
# 'type': 'cifs',
132
134
# 'vers': '<1.0> or <3.0>'
133
135
}
134
136
135
- CEPHFS_DEVICE_CONFIG = {
137
+ CEPHFS_DEVICE_CONFIG: Dict[str, Dict[str, str]] = {
136
138
# 'server': '10.0.0.2',
137
139
# 'serverpath': '/vms'
138
140
}
139
141
140
- MOOSEFS_DEVICE_CONFIG = {
142
+ MOOSEFS_DEVICE_CONFIG: Dict[str, Dict[str, str]] = {
141
143
# 'masterhost': 'mfsmaster',
142
144
# 'masterport': '9421',
143
145
# 'rootpath': '/vms'
144
146
}
145
147
146
- LVMOISCSI_DEVICE_CONFIG = {
148
+ LVMOISCSI_DEVICE_CONFIG: Dict[str, Dict[str, str]] = {
147
149
# 'target': '192.168.1.1',
148
150
# 'port': '3260',
149
151
# 'targetIQN': 'target.example',
0 commit comments