fixes
[tests.git] / system / LocalTestResources.sample.inria
1 #
2 # $Id$
3
4 # this is only an example file
5 # the actual file is installed in your testmaster box as /root/LocalTestResources.py
6
7
8
9 from TestResources import TestResources
10
11 class OnelabTestResources (TestResources):
12     
13     # we use only one for now but who knows
14     def plc_boxes (self):
15         return [ 'testbox-plc.onelab.eu' ]
16
17     def network_dict (self):
18         return { 'interface_fields:gateway':'138.96.248.250',
19                  'interface_fields:network':'138.96.0.0',
20                  'interface_fields:broadcast':'138.96.255.255',
21                  'interface_fields:netmask':'255.255.0.0',
22                  'interface_fields:dns1': '138.96.0.10',
23                  'interface_fields:dns2': '138.96.0.11',
24                  }
25
26     def nodes_ip_pool (self):
27         return [ ( 'vnode%02d.inria.fr'%i, 
28                    '138.96.255.%d'%(230+i), 
29                    '02:34:56:00:00:%02d'%i) for i in range(1,10) ]
30     
31     def qemus_ip_pool (self):
32         return [ ( 'testqemu%d.onelab.eu'%i, None, None) for i in range(1,4) ]
33
34     def max_qemus (self):
35         return 3
36
37     def plcs_ip_pool (self):
38         return [  ( 'vplc%02d.inria.fr'%i, 
39                     '138.96.255.%d'%(200+i), 
40                     '02:34:56:00:ee:%02d'%i) for i in range(1,16) ]
41
42     def max_plcs (self):
43         return 12
44
45
46 local_resources = OnelabTestResources ()