net/frr: do not start unless a CARP MASTER is there

This commit is contained in:
Franco Fichtner
2019-04-25 17:41:52 +02:00
parent d60556f66a
commit bc8ffbad03
2 changed files with 7 additions and 5 deletions
+1
View File
@@ -1,5 +1,6 @@
PLUGIN_NAME= frr
PLUGIN_VERSION= 1.9
PLIUGIN_REIVISION= 1
PLUGIN_COMMENT= The FRRouting Protocol Suite
PLUGIN_DEPENDS= frr5 ruby
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
@@ -1,9 +1,9 @@
frr_enable="{% if helpers.exists('OPNsense.quagga.general.enabled') and OPNsense.quagga.general.enabled == '1' %}YES{% else %}NO{% endif %}"
{% if helpers.exists('OPNsense.quagga.general.enabled') and OPNsense.quagga.general.enabled == '1' %}
frr_var_script="/usr/local/opnsense/scripts/quagga/setup.sh"
frr_enable="YES"
{% if helpers.exists('OPNsense.quagga.general.enablecarp') and OPNsense.quagga.general.enablecarp == '1' %}
start_precmd="ifconfig | grep 'carp: MASTER'"
{% endif %}
frr_daemons="zebra{%
if helpers.exists('OPNsense.quagga.ospf.enabled') and OPNsense.quagga.ospf.enabled == '1' %} ospfd{% endif %}{%
if helpers.exists('OPNsense.quagga.rip.enabled') and OPNsense.quagga.rip.enabled == '1' %} ripd{% endif %}{%
@@ -11,5 +11,6 @@ if helpers.exists('OPNsense.quagga.bgp.enabled') and OPNsense.quagga.bgp.enabled
if helpers.exists('OPNsense.quagga.ospf6.enabled') and OPNsense.quagga.ospf6.enabled == '1' %} ospf6d{% endif %}{%
if helpers.exists('OPNsense.quagga.ripng.enabled') and OPNsense.quagga.ripng.enabled == '1' %} ripngd{% endif %}{%
if helpers.exists('OPNsense.quagga.isis.enabled') and OPNsense.quagga.isis.enabled == '1' %} isisd{% endif %}"
#frr_flags="...."
#frr_extralibs_path="... ..."
{% else %}
frr_enable="NO"
{% endif %}