mirror of
https://github.com/Wojtek242/route0.git
synced 2024-11-23 07:35:25 +01:00
Fix problem with no script for plain
This commit is contained in:
parent
5ff46956f0
commit
5e27e61500
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user