From d776efd81012bc5b114f4a1a6ef29574466e09c8 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 21 Dec 2010 16:41:47 +0000 Subject: Black list gre interfaces from bridge member list since they cannot be part of a bridge. --- usr/local/www/interfaces_bridge_edit.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/local/www/interfaces_bridge_edit.php b/usr/local/www/interfaces_bridge_edit.php index 06d5b94..ec48bc9 100644 --- a/usr/local/www/interfaces_bridge_edit.php +++ b/usr/local/www/interfaces_bridge_edit.php @@ -46,6 +46,10 @@ if (!is_array($config['bridges']['bridged'])) $a_bridges = &$config['bridges']['bridged']; $ifacelist = get_configured_interface_with_descr(); +foreach ($ifacelist as $bif => $bdescr) { + if (substr(get_real_interface($bif), 0, 3) == "gre") + unset($ifacelist[$bif]); +} $id = $_GET['id']; if (isset($_POST['id'])) -- cgit v1.1