Correctly match the interface to the state

This commit is contained in:
Scott Ullrich 2006-09-03 23:51:52 +00:00
parent 0529547cf6
commit bf875fa977

View File

@ -234,7 +234,7 @@ function get_interface_info($ifdescr) {
$int = convert_friendly_interface_to_real_interface_name($ifdescr);
$bridge = link_int_to_bridge_interface($int);
if($bridge) {
$bridge_text = `/sbin/ifconfig {$bridge}`;
$bridge_text = `/sbin/ifconfig {$bridge} | grep \"$int\"`;
if(stristr($bridge_text, "blocking") <> false) {
$ifinfo['bridge'] = "<b><font color='red'>blocking</font></b> - check for ethernet loops";
$ifinfo['bridgeint'] = $bridge;