r1423 + added LVS config tab
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 24 Dec 2007 18:34:34 +0000 (18:34 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 24 Dec 2007 18:34:34 +0000 (18:34 +0000)
inc/interface.php
inc/navigation.php
inc/triggers.php

index 486ebb64edace0d29b1c98874118fd7e2c09c004..1b771101140141dff59ee8506e85a6c5620adbeb 100644 (file)
@@ -3491,4 +3491,9 @@ Dictionary edit page in Configuration section.
 <?php
 }
 
 <?php
 }
 
+function renderLVSConfig ($object_id)
+{
+       dragon();
+}
+
 ?>
 ?>
index 617a2812a82bb545c0e8b3c819e2d0990524d9b0..c98006a6877133bf9dc6c398633551a543f6655e 100644 (file)
@@ -64,6 +64,7 @@ $tab['object']['network'] = 'IPv4';
 $tab['object']['portfwrd'] = 'NATv4';
 $tab['object']['switchvlans'] = 'Live VLANs';
 $tab['object']['snmpportfinder'] = 'SNMP port finder';
 $tab['object']['portfwrd'] = 'NATv4';
 $tab['object']['switchvlans'] = 'Live VLANs';
 $tab['object']['snmpportfinder'] = 'SNMP port finder';
+$tab['object']['lvsconfig'] = 'LVS configuration';
 $tabhandler['object']['default'] = 'renderRackObject';
 $tabhandler['object']['edit'] = 'renderEditObjectForm';
 $tabhandler['object']['rackspace'] = 'renderRackSpaceForObject';
 $tabhandler['object']['default'] = 'renderRackObject';
 $tabhandler['object']['edit'] = 'renderEditObjectForm';
 $tabhandler['object']['rackspace'] = 'renderRackSpaceForObject';
@@ -72,6 +73,7 @@ $tabhandler['object']['network'] = 'renderNetworkForObject';
 $tabhandler['object']['portfwrd'] = 'renderIPAddressPortForwarding';
 $tabhandler['object']['switchvlans'] = 'renderVLANMembership';
 $tabhandler['object']['snmpportfinder'] = 'renderSNMPPortFinder';
 $tabhandler['object']['portfwrd'] = 'renderIPAddressPortForwarding';
 $tabhandler['object']['switchvlans'] = 'renderVLANMembership';
 $tabhandler['object']['snmpportfinder'] = 'renderSNMPPortFinder';
+$tabhandler['object']['lvsconfig'] = 'renderLVSConfig';
 $helptab['object']['network'] = 'nets';
 $helptab['object']['ports'] = 'ports';
 $helptab['object']['portfwrd'] = 'nets';
 $helptab['object']['network'] = 'nets';
 $helptab['object']['ports'] = 'ports';
 $helptab['object']['portfwrd'] = 'nets';
index 85a5d40b6be64b0b80d736ade05083a41dc7c61c..b3f3300ecf9390a0c4b7011ecf3b0ee7be109178 100644 (file)
@@ -60,4 +60,14 @@ function trigger_emptyRackspace ()
        return (count (readChapter ('RackRow')) == 0);
 }
 
        return (count (readChapter ('RackRow')) == 0);
 }
 
+function trigger_lvsconfig ()
+{
+       assertUIntArg ('object_id');
+       $object_id = $_REQUEST['object_id'];
+       $object = getObjectInfo ($object_id);
+       if ($object['objtype_id'] != 4) // server
+               return FALSE;
+       return (count (getObjectForwards ($object_id)) > 1);
+}
+
 ?>
 ?>