r1252 + fixed renderSNMPPortFinder() to add FastEthernet ports
authorDenis Ovsienko <infrastation@yandex.ru>
Fri, 9 Nov 2007 21:27:14 +0000 (21:27 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 9 Nov 2007 21:27:14 +0000 (21:27 +0000)
  to 3560 switches with RJ-45/100Base-TX port type (was
  RJ-45/1000Base-T initially)

inc/interface.php

index bc07534c0107337b13f8d6520b6e521f5ad4ba56..1d25bde6a019dbefaabc91bdca3422d1f50915c3 100644 (file)
@@ -3230,7 +3230,7 @@ function renderSNMPPortFinder ($object_id = 0)
                                for ($i = 1; $i <= 48; $i++)
                                {
                                        $label = "${i}X";
-                                       $error = commitAddPort ($object_id, 'fa0/' . $i, 11, $label, $ifList2["FastEthernet0/${i}"]['phyad']);
+                                       $error = commitAddPort ($object_id, 'fa0/' . $i, 6, $label, $ifList2["FastEthernet0/${i}"]['phyad']);
                                        if ($error == '')
                                                $newports++;
                                        else