r1817 + last fixes to make virtual services and RS pool have tags working
authorDenis Ovsienko <infrastation@yandex.ru>
Sat, 22 Mar 2008 21:52:49 +0000 (21:52 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Sat, 22 Mar 2008 21:52:49 +0000 (21:52 +0000)
inc/interface.php
inc/navigation.php

index a23419584c389740c63c9d55eaf995cb947a763e..761ce49c7c3f4717714c8850a2ff452017be5d9a 100644 (file)
@@ -3932,6 +3932,7 @@ function renderVirtualService ()
        echo "<tr><th width='50%' class=tdright>Protocol:</th><td class=tdleft>${vsinfo['proto']}</td></tr>\n";
        echo "<tr><th width='50%' class=tdright>Virtual IP address:</th><td class=tdleft><a href='${root}?page=ipaddress&tab=default&ip=${vsinfo['vip']}'>${vsinfo['vip']}</a></td></tr>\n";
        echo "<tr><th width='50%' class=tdright>Virtual port:</th><td class=tdleft>${vsinfo['vport']}</td></tr>\n";
+       printTagTRs();
        if (!empty ($vsinfo['vsconfig']))
        {
                echo "<tr><th width='50%' class=tdright>VS configuration:</th><td class=tdleft>&nbsp;</td></tr>\n";
@@ -4189,6 +4190,7 @@ function renderRSPool ($pool_id = 0)
                echo "<tr><th width='50%' class=tdright>Pool name:</th><td class=tdleft>${poolInfo['name']}</td></tr>\n";
        echo "<tr><th width='50%' class=tdright>Real servers:</th><td class=tdleft>" . count ($poolInfo['rslist']) . "</td></tr>\n";
        echo "<tr><th width='50%' class=tdright>Load balancers:</th><td class=tdleft>" . count ($poolInfo['lblist']) . "</td></tr>\n";
+       printTagTRs();
        echo "</table>";
        finishPortlet();
 
index 16b7937e54d66ad01af80bd8b609438f34255d52..e43acf4fcc5a8ff917f50991133e8718f35b8b6c 100644 (file)
@@ -195,6 +195,7 @@ $tab['vservice']['editlblist'] = '[Load balancers]';
 $tab['vservice']['tags'] = 'Tags';
 $tabhandler['vservice']['default'] = 'renderVirtualService';
 $tabhandler['vservice']['tags'] = 'renderIPv4VSTags';
+$ophandler['vservice']['tags']['save'] = 'saveIPv4VSTags';
 $trigger['vservice']['tags'] = 'trigger_tags';
 
 $page['rspools']['title'] = 'RS pools';
@@ -234,6 +235,7 @@ $ophandler['rspool']['editlblist']['addLB'] = 'addLoadBalancer';
 $ophandler['rspool']['editlblist']['delLB'] = 'deleteLoadBalancer';
 $ophandler['rspool']['editlblist']['updLB'] = 'updateLoadBalancer';
 $ophandler['rspool']['rsinservice']['upd'] = 'updateRSInService';
+$ophandler['rspool']['tags']['save'] = 'saveIPv4RSPoolTags';
 
 $page['rservers']['title'] = 'Real servers';
 $page['rservers']['parent'] = 'ipv4slb';