From 94be2ccf4d2c4d4d26371c8384048fbb4e457962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Fri, 25 Jul 2008 20:35:59 +0000 Subject: Implement frontend part for lagg(4). NOTE: that lagg(4) and bridge(4) need both a status page. --- usr/local/www/interfaces_lagg.php | 136 ++++++++++++++++++++++++++++++ usr/local/www/interfaces_lagg_edit.php | 149 +++++++++++++++++++++++++++++++++ 2 files changed, 285 insertions(+) create mode 100644 usr/local/www/interfaces_lagg.php create mode 100644 usr/local/www/interfaces_lagg_edit.php (limited to 'usr') diff --git a/usr/local/www/interfaces_lagg.php b/usr/local/www/interfaces_lagg.php new file mode 100644 index 0000000..f2643df --- /dev/null +++ b/usr/local/www/interfaces_lagg.php @@ -0,0 +1,136 @@ +
{$if}"; + return true; + } + } + + return false; +} + +if ($_GET['act'] == "del") { + /* check if still in use */ + if (lagg_inuse($_GET['id'])) { + $input_errors[] = "This lagg interface cannot be deleted because it is still being used."; + } else { + mwexec("/sbin/ifconfig " . $a_laggs[$_GET['id']]['laggif'] . " destroy"); + unset($a_laggs[$_GET['id']]); + + write_config(); + + header("Location: interfaces_lagg.php"); + exit; + } +} + + +$pgtitle = array("Interfaces","LAGG"); +include("head.inc"); + +?> + + + + + + + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
InterfaceMembersDescription
+ + + + + +   + + +  
 

+ Note:
+
+ Something meaningful here. +

 
+
+
+ + + diff --git a/usr/local/www/interfaces_lagg_edit.php b/usr/local/www/interfaces_lagg_edit.php new file mode 100644 index 0000000..7c7cffd --- /dev/null +++ b/usr/local/www/interfaces_lagg_edit.php @@ -0,0 +1,149 @@ + + + + + +
+ + + + + + + + + + + + + + + + + +
Parent interface + +
+ Choose the members that will be used for the link aggregation.
Lag proto + +
+ Remote lagg address endpoint. The subnet part is used for the determinig the network that is tunneled.
Description + +
You may enter a description here + for your reference (not parsed).
  + + + + + +
+
+ + + -- cgit v1.1