mirror of
https://github.com/Wojtek242/route0.git
synced 2024-11-22 07:05:25 +01:00
Small fixes
This commit is contained in:
parent
dc8764f8b6
commit
8bbd3d07ad
@ -12,7 +12,7 @@ from topology.two_nodes.topo import NetTopo as TwoNodes
|
|||||||
from scenario import Basic, Plain, Isis
|
from scenario import Basic, Plain, Isis
|
||||||
|
|
||||||
|
|
||||||
def start_deamon(node, daemon, conf_dir):
|
def start_daemon(node, daemon, conf_dir):
|
||||||
"""Start one FRR daemon on a given node.
|
"""Start one FRR daemon on a given node.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@ -49,10 +49,8 @@ def run(topo, scenario):
|
|||||||
for node in net.switches:
|
for node in net.switches:
|
||||||
for daemon in daemons:
|
for daemon in daemons:
|
||||||
if node in getattr(scenario, daemon):
|
if node in getattr(scenario, daemon):
|
||||||
start_deamon(node,
|
conf_dir = getattr(scenario, "{}_conf".format(daemon))
|
||||||
daemon,
|
start_daemon(node, daemon, conf_dir)
|
||||||
getattr(scenario,
|
|
||||||
"{}_conf".format(daemon)))
|
|
||||||
|
|
||||||
if node.name.startswith('R'):
|
if node.name.startswith('R'):
|
||||||
# Enable IP forwarding
|
# Enable IP forwarding
|
||||||
|
Loading…
Reference in New Issue
Block a user