From a16242976bfc3aa6303546ffa40fbfcb4ec96ad9 Mon Sep 17 00:00:00 2001 From: Fabian Franz Date: Wed, 10 May 2017 11:23:46 +0200 Subject: [PATCH] Quagga: Add OSPFv3 Diagnostics (#151) * add UI changes * add template for routes * add database * diagnostics lsa --- .../OPNsense/Quagga/DiagnosticsController.php | 5 + .../app/models/OPNsense/Quagga/Menu/Menu.xml | 5 +- .../OPNsense/Quagga/diagnosticsospfv3.volt | 371 ++++++++++++++++++ 3 files changed, 379 insertions(+), 2 deletions(-) create mode 100644 net/quagga/src/opnsense/mvc/app/views/OPNsense/Quagga/diagnosticsospfv3.volt diff --git a/net/quagga/src/opnsense/mvc/app/controllers/OPNsense/Quagga/DiagnosticsController.php b/net/quagga/src/opnsense/mvc/app/controllers/OPNsense/Quagga/DiagnosticsController.php index f57e9cda8..2df01e100 100644 --- a/net/quagga/src/opnsense/mvc/app/controllers/OPNsense/Quagga/DiagnosticsController.php +++ b/net/quagga/src/opnsense/mvc/app/controllers/OPNsense/Quagga/DiagnosticsController.php @@ -37,6 +37,11 @@ class DiagnosticsController extends \OPNsense\Base\IndexController $this->view->title = gettext("Diagnostics: OSPF"); $this->view->pick('OPNsense/Quagga/diagnosticsospf'); } + public function ospfv3Action() + { + $this->view->title = gettext("Diagnostics: OSPFv3"); + $this->view->pick('OPNsense/Quagga/diagnosticsospfv3'); + } public function generalAction() { $this->view->title = gettext("Diagnostics: General"); diff --git a/net/quagga/src/opnsense/mvc/app/models/OPNsense/Quagga/Menu/Menu.xml b/net/quagga/src/opnsense/mvc/app/models/OPNsense/Quagga/Menu/Menu.xml index 554222fea..2dbceccd3 100644 --- a/net/quagga/src/opnsense/mvc/app/models/OPNsense/Quagga/Menu/Menu.xml +++ b/net/quagga/src/opnsense/mvc/app/models/OPNsense/Quagga/Menu/Menu.xml @@ -3,13 +3,14 @@ - + - + + diff --git a/net/quagga/src/opnsense/mvc/app/views/OPNsense/Quagga/diagnosticsospfv3.volt b/net/quagga/src/opnsense/mvc/app/views/OPNsense/Quagga/diagnosticsospfv3.volt new file mode 100644 index 000000000..b256f5e4b --- /dev/null +++ b/net/quagga/src/opnsense/mvc/app/views/OPNsense/Quagga/diagnosticsospfv3.volt @@ -0,0 +1,371 @@ +{# + +OPNsense® is Copyright © 2014 – 2017 by Deciso B.V. +Copyright (C) 2017 Fabian Franz +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, +OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +#} + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+