r1572 + adding SSV1 format for multiport form
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 21 Jan 2008 12:01:03 +0000 (12:01 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 21 Jan 2008 12:01:03 +0000 (12:01 +0000)
ChangeLog
inc/interface.php
inc/ophandlers.php

index ccb9a97..998adeb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,7 @@
        update: fixed tabindex in NATv4 rules form
        update: better dictionary editor layout
        update: get FQDN over SNMP
+       update: accept one more multiport format
        new feature: more information for rack view
        new feature: rack thumbnails caching
        new feature: rackspace and IPv4 subnets utilization indicator
index d2ea75a..fd36899 100644 (file)
@@ -1016,6 +1016,7 @@ function renderPortsForObject ($object_id = 0)
        echo '<option value=fiwg selected>Foundry ServerIron/FastIron WorkGroup/Edge: sh int br</option>';
        echo '<option value=fiedge disabled>Foundry FastIron Edge: sh int br</option>';
        echo '<option value=fisxii>Foundry FastIron SuperX/II4000: sh int br</option>';
+       echo '<option value=ssv1>SSV:&lt;interface name&gt; &lt;MAC address&gt;</option>';
        echo "</select>";
        echo 'Default port type: ';
        echo "<select name=port_type>\n";
index 1fa6677..9925c99 100644 (file)
@@ -278,6 +278,17 @@ http://www.cisco.com/en/US/products/hw/routers/ps274/products_tech_note09186a008
                                        'label' => "${ifnumber}"
                                );
                                break;
+                       case 'ssv1':
+                               $words = explode (' ', $line));
+                               if (empty ($words[0]) or empty ($words[1]))
+                                       continue;
+                               $ports[] = array
+                               (
+                                       'name' => $words[0],
+                                       'l2address' => $words[1],
+                                       'label' => ''
+                               );
+                               break;
                        default:
                                return
                                        "${root}?page=${pageno}&tab=${tabno}&object_id=${object_id}&error=" .