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
8 # this config is defined to run on top of another one
9 # and just sets the nodes as 'reservable'
12 # run -c default -c resa
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'