net/quagga: merge version 0.0.2 from master

This commit is contained in:
Franco Fichtner 2017-03-26 14:37:44 +02:00
parent 2f62706937
commit 7f78c35e2e
11 changed files with 39 additions and 6 deletions

View file

@ -1,5 +1,5 @@
PLUGIN_NAME= quagga
PLUGIN_VERSION= 0.0.1
PLUGIN_VERSION= 0.0.2
PLUGIN_COMMENT= Quagga Routing Suite
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com
PLUGIN_DEVEL = yes

View file

@ -3,6 +3,6 @@
<id>routing.bgp.general.Enabled</id>
<label>enable</label>
<type>checkbox</type>
<help>This will activate the ospf service.</help>
<help>This will activate the bgp service.</help>
</field>
</form>

View file

@ -18,5 +18,6 @@
<id>network.area</id>
<label>Area</label>
<type>text</type>
<help>Area in wildcard mask style like 0.0.0.0 and no decimal 0</help>
</field>
</form>

View file

@ -3,6 +3,6 @@
<id>routing.isis.general.Enabled</id>
<label>enable</label>
<type>checkbox</type>
<help>This will activate the ospf service.</help>
<help>This will activate the isis service.</help>
</field>
</form>

View file

@ -3,6 +3,6 @@
<id>routing.rip.general.Enabled</id>
<label>enable</label>
<type>checkbox</type>
<help>This will activate the ospf service.</help>
<help>This will activate the rip service.</help>
</field>
</form>

View file

@ -1,6 +1,6 @@
<model>
<mount>//OPNsense/quagga/general</mount>
<description>OSPF Routing configuration</description>
<description>Quagga Routing configuration</description>
<items>
<enabled type="BooleanField">
<default>0</default>

View file

@ -0,0 +1,13 @@
#!/bin/sh
user=quagga
group=quagga
mkdir -p /var/run/quagga
chown $user:$group /var/run/quagga
chmod 750 /var/run/quagga
mkdir -p /usr/local/etc/quagga
chown $user:$group /usr/local/etc/quagga
chmod 750 /usr/local/etc/quagga

View file

@ -1,5 +1,5 @@
[start]
command:/usr/local/etc/rc.d/quagga start
command:/usr/local/opnsense/scripts/quagga/setup.sh;/usr/local/etc/rc.d/quagga start
parameters:
type:script
message:starting quagga

View file

@ -1,2 +1,3 @@
ospfd.conf:/usr/local/etc/quagga/ospfd.conf
quagga:/etc/rc.conf.d/quagga
zebra.conf:/usr/local/etc/quagga/zebra.conf

View file

@ -1,6 +1,10 @@
defaultrouter="NO"
quagga_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' %}
quagga_opnsense_bootup_run="/usr/local/opnsense/scripts/quagga/setup.sh"
{% endif %}
quagga_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.ripd.enabled == '1' %} ripd{% endif %}{%

View file

@ -0,0 +1,14 @@
!
! Zebra configuration saved from vty
! 2017/03/03 20:21:04
!
!
!
!
!
ip forwarding
ipv6 forwarding
!
!
line vty
!