keep track of what has moved to py3
[tests.git] / system / config_resa.py
1 # -*- python3 -*-
2 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
3 # Copyright (C) 2015 INRIA 
4 #
5 # a configuration module is expected:
6 # (*) to define a config method
7 # (*) that takes two arguments
8 #     (**) the current set of plc_specs as output by the preceding config modules
9 #     (**) TestMain options field
10 # (*) and that returns the new set of plc_specs
11
12 # this config is defined to run on top of another one 
13 # and just sets the nodes as 'reservable'
14
15 # use e.g. with
16 # run -c default -c resa
17
18 import config_default
19
20 def config (plc_specs, options):
21     for plc_spec in plc_specs:
22         for site in plc_spec['sites']:
23             for node in site['nodes']:
24                 node['node_fields']['node_type']='reservable'
25     return plc_specs