r2838 wrong port type set for WS-C2950-24. closes ticket 229
authorJonathan Thurman <jthurman42@gmail.com>
Thu, 11 Jun 2009 04:53:54 +0000 (04:53 +0000)
committerJonathan Thurman <jthurman42@gmail.com>
Thu, 11 Jun 2009 04:53:54 +0000 (04:53 +0000)
ChangeLog
inc/snmp.php

index 1ccc833..6503ace 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
        update: show appropriate message, if a record cannot be found
        update: add OS, router, fibre switch dictionary entries for ticket 238 (by Aaron)
        bugfix: do not produce PHP warning on LivePTR tab
        update: show appropriate message, if a record cannot be found
        update: add OS, router, fibre switch dictionary entries for ticket 238 (by Aaron)
        bugfix: do not produce PHP warning on LivePTR tab
+       bugfix: wrong port type set for WS-C2950-24. closes ticket 229 (by jthurman)
 0.17.1 2009-06-03
        bugfix: tags were not displayed on "File" page
        bugfix: multiline comment for an added file was stored incorrectly
 0.17.1 2009-06-03
        bugfix: tags were not displayed on "File" page
        bugfix: multiline comment for an added file was stored incorrectly
index 2e49349..8ff467e 100644 (file)
@@ -286,7 +286,7 @@ function doSNMPmining ($object_id, $community)
                        for ($i = 1; $i <= 26; $i++)
                        {
                                $label = "${i}X"; 
                        for ($i = 1; $i <= 26; $i++)
                        {
                                $label = "${i}X"; 
-                               $error = commitAddPort ($object_id, 'fa0/' . $i, 24, $label, $ifList2["FastEthernet0/${i}"]['phyad']);
+                               $error = commitAddPort ($object_id, 'fa0/' . $i, 19, $label, $ifList2["FastEthernet0/${i}"]['phyad']);
                                if ($error == '')
                                        $newports++;
                                else
                                if ($error == '')
                                        $newports++;
                                else
@@ -297,7 +297,7 @@ function doSNMPmining ($object_id, $community)
                        for ($i = 1; $i <= 24; $i++)
                        {
                                $label = "${i}X"; 
                        for ($i = 1; $i <= 24; $i++)
                        {
                                $label = "${i}X"; 
-                               $error = commitAddPort ($object_id, 'fa0/' . $i, 24, $label, $ifList2["FastEthernet0/${i}"]['phyad']);
+                               $error = commitAddPort ($object_id, 'fa0/' . $i, 19, $label, $ifList2["FastEthernet0/${i}"]['phyad']);
                                if ($error == '')
                                        $newports++;
                                else
                                if ($error == '')
                                        $newports++;
                                else