Fix problem with no script for plain

This commit is contained in:
Wojciech Kozlowski 2024-03-13 15:06:36 +01:00
parent 5ff46956f0
commit 5e27e61500

View File

@ -35,6 +35,11 @@ class Experiment:
# Initialise list of daemons.
self.daemons = []
# Default scenario script is none which applies to both plain and basic.
# The difference between the two is that basic will continue and launch
# zebra and staticd before returning.
self._scenario_script = None
# Return now if the scenario is "plain".
if scenario == "plain":
return
@ -42,7 +47,6 @@ class Experiment:
# Check if the scenario directory exists. If it does work out which
# daemons are to be used and on which nodes. If the scenario is
# "basic" skip this step.
self._scenario_script = None
if scenario != "basic":
scenario_dir = os.path.join(topo_dir,
"scenario/{}".format(scenario))