scenario_file_format
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scenario_file_format [2019/11/28 15:57] – [Grammar] mimbert | scenario_file_format [2023/08/29 15:29] (current) – Add example of passive keyword in new syntax cmorin | ||
---|---|---|---|
Line 11: | Line 11: | ||
The syntax of a yaml file may be checked with http:// | The syntax of a yaml file may be checked with http:// | ||
====== Grammar ====== | ====== Grammar ====== | ||
+ | |||
+ | We're progressively adding new capabilities to the CorteXlab platform. There is now two different syntaxes for the scenario file, the legacy syntax, where commands are run on the nodes, and the new syntax, where [[docker|docker]] containers are run on the nodes. Both syntaxes are allowed, even in the same scenario, but only one syntax is allowed per-node. | ||
The scenario.yaml file is structured as follows: | The scenario.yaml file is structured as follows: | ||
Line 17: | Line 19: | ||
* 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 |
- | * **(new syntax)** | + | * **(new syntax)** a '' |
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
- | * **(old syntax)** | + | * **(old syntax)** a '' |
nodes: | nodes: | ||
node1: | node1: | ||
Line 32: | Line 34: | ||
* which //MAY// contain a '' | * which //MAY// contain a '' | ||
- | An example scenario (new syntax): | + | An example scenario (new syntax):< |
- | + | ||
- | < | + | |
description: | description: | ||
duration: 120 | duration: 120 | ||
Line 40: | Line 40: | ||
node3: | node3: | ||
container: | container: | ||
- | - | + | - image: m1mbert/ |
- | | + | - image: m1mbert/ |
- | - | + | |
- | | + | |
command: / | command: / | ||
node4: | node4: | ||
container: | container: | ||
image: m1mbert/ | image: m1mbert/ | ||
- | </ | + | passive: true |
- | + | </ | |
- | An example | + | |
- | < | + | An example scenario (old syntax):< |
description: | description: | ||
duration: 60 | duration: 60 |
scenario_file_format.1574953036.txt.gz · Last modified: 2019/11/28 15:57 by mimbert