aboutsummaryrefslogtreecommitdiffstats
path: root/example/scenarios
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-08-21 14:58:29 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-08-21 16:48:02 +0200
commitaab56921f11d509283bcee756e2f55217315576b (patch)
tree090ded2f7f83fab13225b687a28d9c3c3083afd3 /example/scenarios
parent635f4c8d8fd00ddf9f0b1b99d4ba7c1b1f90b441 (diff)
Introduce scenario modifiers
Before this patch, scenarios were only used to select resources with specific attributes. This commit introduces "modifiers" in scenarios, which allows setting or modifing config attributes of resources once they have been reserved. This way same test can be run selecting same resources but modifying its configuration, allowing for instance running different number of TRX, different timeslot configuration, etc. Modifiers are described by placing a "modifiers" dictionary in any scenario file, similar to the current "resources" one used to select requird resources. The "modifiers" dictionary is overlaid on top of the "resources" one resulting from combining all the "resources" dictionary of all scenario files. Change-Id: If8c422c67d9a971d9ce2c72594f55cde2db7550d
Diffstat (limited to 'example/scenarios')
-rw-r--r--example/scenarios/mod-bts0-numtrx2.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/scenarios/mod-bts0-numtrx2.conf b/example/scenarios/mod-bts0-numtrx2.conf
new file mode 100644
index 0000000..eb24fd3
--- /dev/null
+++ b/example/scenarios/mod-bts0-numtrx2.conf
@@ -0,0 +1,3 @@
+modifiers:
+ bts:
+ - num_trx: 2