Commit 71fde17d authored by Simon Redman's avatar Simon Redman

Prevent frr_configurator from failing if run twice

parent 2618b443
......@@ -77,7 +77,7 @@ 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 https://frrouting.org/user-guide/vtysh.html#integrated-configuration-mode
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"
DISABLE_INTEGRATED_COMMAND = "sudo sed -i 's/service integrated-vtysh-config/no service integrated-vtysh-config/' /etc/frr/vtysh.conf && sudo rm -f /etc/frr/frr.conf"
START_DAEMON_COMMAND = "sudo systemctl restart frr"
STOP_DAEMON_COMMAND = "sudo systemctl stop frr"
......
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