diff --git a/README.md b/README.md index f97a58271..7406575df 100644 --- a/README.md +++ b/README.md @@ -433,6 +433,9 @@ It is also possible to iterate through a datastore, and feed each value into sep Some generators generate structured content in JSON format, for example the organisation type. It is possible to access a particular element of structured data from a datastore with the access_json using the ruby hash lookup format. See the example scenario: ```scenarios/examples/datastore_examples/json_selection_example.xml``` +Some scenarios require VMs IP addresses to be used as parameters for other modules in the scenario. If this is the case, you should use the 'IP_addresses' datastore to store the IPs for all VMs in the scenario and use the access functionality to pass them into network modules.For example: +```scenarios/examples/datastore_examples/network_ip_datastore_example.xml``` + ## Modules SecGen is designed to be easily extendable with modules that define vulnerabilities and other kinds of software, configuration, and content changes. diff --git a/scenarios/examples/datastore_examples/network_ip_datastore_example.xml b/scenarios/examples/datastore_examples/network_ip_datastore_example.xml new file mode 100644 index 000000000..8f9e0e2dd --- /dev/null +++ b/scenarios/examples/datastore_examples/network_ip_datastore_example.xml @@ -0,0 +1,50 @@ + + + + + + example_server + + + + + 172.10.0.1 + 172.12.0.1 + 172.10.0.2 + + + + + + IP_addresses + + + + + + example_server + + + + + IP_addresses + + + + + + example_server + + + + + IP_addresses + + + + +