9cb53a0cfa180ccb647d5ee38e7dcc7b9e406aae
[tests.git] / system / config_resa.py
1 # a configuration module is expected:
2 # (*) to define a config method
3 # (*) that takes two arguments
4 #     (**) the current set of plc_specs as output by the preceding config modules
5 #     (**) TestMain options field
6 # (*) and that returns the new set of plc_specs
7
8 # this config is defined to run on top of another one 
9 # and just sets the nodes as 'reservable'
10
11 # use e.g. with
12 # run -c default -c resa
13
14 import config_default
15
16 def config (plc_specs, options):
17     for plc_spec in plc_specs:
18         for site in plc_spec['sites']:
19             for node in site['nodes']:
20                 node['node_fields']['node_type']='reservable'
21     return plc_specs