Commit 2f64b9cf authored by Simon Redman's avatar Simon Redman

Respect --stop argument

parent 73caf2a6
......@@ -83,15 +83,17 @@ if __name__ == "__main__":
host_nodes.append(node)
frr_configurator.configure_nodes(netgraph.graph, ignore_nodes=ovs_nodes)
frr_configurator.start_frr_on_network(netgraph.graph, ignore_nodes=ovs_nodes)
sysctl_configurator.configure_nodes(netgraph.graph,ignore_nodes=ovs_nodes)
ospf_sniffer_configurator.clone_repo_on_network(netgraph.graph, ignore_nodes=ovs_nodes + host_nodes)
ospf_sniffer_configurator.stop_sniffer_on_network(netgraph.graph, ignore_nodes=ovs_nodes + host_nodes) # Stopping with the app not running is not great, but better than starting twice
ospf_sniffer_configurator.start_sniffer_on_network(netgraph.graph,
controller=args.controller_name,
port=args.controller_port,
ignore_nodes=ovs_nodes + host_nodes)
if not args.stop:
frr_configurator.start_frr_on_network(netgraph.graph, ignore_nodes=ovs_nodes)
ospf_sniffer_configurator.start_sniffer_on_network(netgraph.graph,
controller=args.controller_name,
port=args.controller_port,
ignore_nodes=ovs_nodes + host_nodes)
ssh_helper.network_graph_logout(netgraph.graph)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment