...
 
Commits (1)
......@@ -40,8 +40,10 @@ if __name__ == "__main__":
help="(Optional) Path to write the final NetJSON file")
parser.add_argument("--username", action='store', type=str, default=getpass.getuser(),
help="Username to use on all hosts. Defaults to current user's username")
parser.add_argument("--stop", action='store_true',
help="Stop all services (after writing config files)")
parser.add_argument("--no-frr", action='store_true',
help="Do not start the FRR daemons")
parser.add_argument("--no-sniffer", action='store_true',
help="Do not start the OSPF sniffer daemons")
parser.add_argument("--controller-name", action='store', type=str, default=ospf_sniffer_configurator.DEFAULT_CONTROLLER,
help="Hostname or IP of the node which is listening to the OSPF reports (Default: {default})".format(default=ospf_sniffer_configurator.DEFAULT_CONTROLLER))
parser.add_argument("--controller-port", action='store', type=int, default=ospf_sniffer_configurator.DEFAULT_CONTROLLER_PORT,
......@@ -86,10 +88,11 @@ if __name__ == "__main__":
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.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
if not args.stop:
if not args.no_frr:
frr_configurator.start_frr_on_network(netgraph.graph, ignore_nodes=ovs_nodes)
if not args.no_sniffer:
ospf_sniffer_configurator.start_sniffer_on_network(netgraph.graph,
controller=args.controller_name,
port=args.controller_port,
......