Assert zebra starts first

This commit is contained in:
Wojciech Kozlowski 2019-04-07 14:27:15 +02:00
parent 0d9c83515b
commit 8ec6c0b43a

View File

@ -51,6 +51,11 @@ def run(experiment):
net = Mininet(topo=experiment.topo(), switch=Router) net = Mininet(topo=experiment.topo(), switch=Router)
net.start() net.start()
# WARNING: zebra must always be started first. It is expected that
# Experiment provides the order for the daemons so we only assert.
if "zebra" in experiment.daemons:
assert experiment.daemons[0] == "zebra"
# WARNING: FRR can get confused unless all daemons on each node are started # WARNING: FRR can get confused unless all daemons on each node are started
# together. # together.
for node in net.switches: for node in net.switches: