Commit 10c95a36 authored by Simon Redman's avatar Simon Redman

Disable FRR integrated config mode to require using my config files

parent 89696d6c
......@@ -76,6 +76,9 @@ CONFIG_PUSH_COMMAND_TEMPLATE = "echo '{config}' | sudo tee {filename}"
ENABLE_DAEMON_COMMAND_TEMPLATE = "sudo sed -i 's/{daemon}=no/{daemon}=yes/' /etc/frr/daemons"
# Disable integrated config mode per
DISABLE_INTEGRATED_COMMAND = "sudo sed -i 's/service integrated-vtysh-config/no service integrated-vtysh-config/' /etc/frr/vtysh.conf && sudo rm /etc/frr/frr.conf"
START_DAEMON_COMMAND = "sudo systemctl restart frr"
STOP_DAEMON_COMMAND = "sudo systemctl stop frr"
......@@ -179,6 +182,10 @@ def configure_nodes(netgraph):
ospf_confs = build_ospf_confs_for_network(netgraph)
zebra_confs = build_zebra_confs_for_network(netgraph)
# Disable integrated config mode
disable_integrated_commands = [DISABLE_INTEGRATED_COMMAND for host in hosts]
outputs = ssh_helper.run_commands_on_many_hosts(sessions, disable_integrated_commands)
# Push ospf6d configurations to all nodes
for host in hosts:
push_command = CONFIG_PUSH_COMMAND_TEMPLATE.format(
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment