scenario_file_format
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
scenario_file_format [2019/11/28 15:46] – [Grammar] mimbert | scenario_file_format [2019/11/28 15:57] – [Grammar] mimbert | ||
---|---|---|---|
Line 13: | Line 13: | ||
The scenario.yaml file is structured as follows: | The scenario.yaml file is structured as follows: | ||
- | * It //MUST// contain a '' | + | * It //MUST// contain a '' |
- | * It //MUST// contain a '' | + | * It //MUST// contain a '' |
* It //MUST// contain a '' | * It //MUST// contain a '' | ||
- | * Nodes key, value pairs, whose keys are the node names (in the set '' | + | * Nodes key, value pairs, whose keys are the node names (in the set '' |
* which //MUST// contain //ONLY ONE// of the following: | * which //MUST// contain //ONLY ONE// of the following: | ||
- | * (new syntax) //EITHER// a '' | + | |
* '' | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
- | * (old syntax) //OR// a //command// key, value pair, whose value is the command line string which will be run on the corresponding node: '' | + | |
nodes: | nodes: | ||
node1: | node1: | ||
Line 29: | Line 29: | ||
- sleep 10000 | - sleep 10000 | ||
- ./my_script | - ./my_script | ||
- | </ | + | </ |
- | * which //MAY// contain a //passive// key, value pair, whose value is a boolean (default is '' | + | * which //MAY// contain a '' |
- | Thus, an example scenario | + | An example scenario |
+ | |||
+ | < | ||
+ | description: | ||
+ | duration: 120 | ||
+ | nodes: | ||
+ | node3: | ||
+ | container: | ||
+ | - | ||
+ | image: m1mbert/ | ||
+ | - | ||
+ | image: m1mbert/ | ||
+ | command: / | ||
+ | node4: | ||
+ | container: | ||
+ | image: m1mbert/ | ||
+ | </ | ||
+ | |||
+ | An example scenario (old syntax): | ||
< | < |
scenario_file_format.txt · Last modified: 2023/08/29 15:29 by cmorin