r3842 generatePortsForCatModule(): add 3750G-16TD case
authorDenis Ovsienko <infrastation@yandex.ru>
Thu, 17 Jun 2010 15:06:19 +0000 (15:06 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 17 Jun 2010 15:06:19 +0000 (15:06 +0000)
inc/snmp.php

index af10ceb..e94e836 100644 (file)
@@ -1176,6 +1176,15 @@ function generatePortsForCatModule ($object_id, $slotno = 1, $mtype = 'X6748', $
                        $mac_address = nextMACAddress ($mac_address);
                }
                break;
+       case '3750G-16TD':
+               $mac_address = nextMACAddress ($mac_address);
+               for ($i = 1; $i <= 16; $i++)
+               {
+                       commitAddPort ($object_id, "gi${slotno}/0/${i}", '1-24', "unit ${slotno} port ${i}", $mac_address);
+                       $mac_address = nextMACAddress ($mac_address);
+               }
+               commitAddPort ($object_id, "te${slotno}/0/1", '5-1079', "unit ${slotno} port ${i}", $mac_address);
+               break;
        }
 }