22ba6658181fd1b4fabe34d5b86be4ed6f8061b2
[racktables] / inc / navigation.php
1 <?php
2 /*
3 *
4 * This file implements generic navigation for RackTables.
5 *
6 */
7
8 $page = array();
9 $tab = array();
10 $trigger = array();
11 $ophandler = array();
12 $tabhandler = array();
13 $delayauth = array();
14
15 $indexlayout = array
16 (
17 array ('rackspace', 'depot', 'ipv4space', 'ipv6space'),
18 array ('files', 'reports', 'ipv4slb', '8021q'),
19 array ('config', 'objectlog'),
20 );
21
22 $page['index']['title'] = 'Main page';
23 $page['index']['handler'] = 'renderIndex';
24
25 $page['rackspace']['title'] = 'Rackspace';
26 $page['rackspace']['parent'] = 'index';
27 $tab['rackspace']['default'] = 'Browse';
28 $tab['rackspace']['edit'] = 'Manage rows';
29 $tab['rackspace']['history'] = 'History';
30 $tabhandler['rackspace']['default'] = 'renderRackspace';
31 $tabhandler['rackspace']['edit'] = 'renderRackspaceRowEditor';
32 $tabhandler['rackspace']['history'] = 'renderRackspaceHistory';
33 $ophandler['rackspace']['edit']['addRow'] = 'tableHandler';
34 $ophandler['rackspace']['edit']['delete'] = 'tableHandler';
35 $ophandler['rackspace']['edit']['updateRow'] = 'tableHandler';
36
37 $page['depot']['parent'] = 'index';
38 $page['depot']['title'] = 'Objects';
39 $tab['depot']['default'] = 'Browse';
40 $tab['depot']['addmore'] = 'Add more';
41 $tabhandler['depot']['default'] = 'renderDepot';
42 $tabhandler['depot']['addmore'] = 'renderAddMultipleObjectsForm';
43 $ophandler['depot']['addmore']['addObjects'] = 'addMultipleObjects';
44 $ophandler['depot']['addmore']['addLotOfObjects'] = 'addLotOfObjects';
45 $ophandler['depot']['addmore']['deleteObject'] = 'deleteObject';
46
47 $page['row']['bypass'] = 'row_id';
48 $page['row']['bypass_type'] = 'uint';
49 $page['row']['parent'] = 'rackspace';
50 $tab['row']['default'] = 'View';
51 $tab['row']['newrack'] = 'Add new rack';
52 $tab['row']['tagroller'] = 'Tag roller';
53 $tabhandler['row']['default'] = 'renderRow';
54 $tabhandler['row']['newrack'] = 'renderNewRackForm';
55 $tabhandler['row']['tagroller'] = 'renderTagRollerForRow';
56 $ophandler['row']['tagroller']['rollTags'] = 'rollTags';
57 $ophandler['row']['newrack']['addRack'] = 'addRack';
58
59 $page['rack']['bypass'] = 'rack_id';
60 $page['rack']['bypass_type'] = 'uint';
61 $page['rack']['parent'] = 'row';
62 $tab['rack']['default'] = 'View';
63 $tab['rack']['edit'] = 'Properties';
64 $tab['rack']['design'] = 'Design';
65 $tab['rack']['problems'] = 'Problems';
66 $tab['rack']['tags'] = 'Tags';
67 $tab['rack']['files'] = 'Files';
68 $tabhandler['rack']['default'] = 'renderRackPage';
69 $tabhandler['rack']['edit'] = 'renderEditRackForm';
70 $tabhandler['rack']['design'] = 'renderRackDesign';
71 $tabhandler['rack']['problems'] = 'renderRackProblems';
72 $tabhandler['rack']['tags'] = 'renderEntityTags';
73 $tabhandler['rack']['files'] = 'renderFilesForEntity';
74 $trigger['rack']['tags'] = 'trigger_tags';
75 $ophandler['rack']['design']['updateRack'] = 'updateRackDesign';
76 $ophandler['rack']['problems']['updateRack'] = 'updateRackProblems';
77 $ophandler['rack']['edit']['updateRack'] = 'updateRack';
78 $ophandler['rack']['edit']['deleteRack'] = 'deleteRack';
79 $ophandler['rack']['tags']['saveTags'] = 'saveEntityTags';
80 $ophandler['rack']['files']['addFile'] = 'addFileToEntity';
81 $ophandler['rack']['files']['linkFile'] = 'linkFileToEntity';
82 $ophandler['rack']['files']['unlinkFile'] = 'unlinkFile';
83
84 $page['object']['bypass'] = 'object_id';
85 $page['object']['bypass_type'] = 'uint';
86 $page['object']['bypass_tabs'] = array ('hl_port_id');
87 $page['object']['parent'] = 'depot';
88 $tab['object']['default'] = 'View';
89 $tab['object']['edit'] = 'Properties';
90 $tab['object']['log'] = 'Log';
91 $tab['object']['rackspace'] = 'Rackspace';
92 $tab['object']['ports'] = 'Ports';
93 $tab['object']['ipv4'] = 'IPv4';
94 $tab['object']['ipv6'] = 'IPv6';
95 $tab['object']['nat4'] = 'NATv4';
96 $tab['object']['livevlans'] = 'Live VLANs';
97 $tab['object']['liveports'] = 'Live ports';
98 $tab['object']['livecdp'] = 'Live CDP';
99 $tab['object']['livelldp'] = 'Live LLDP';
100 $tab['object']['livehndp'] = 'Live HNDP';
101 $tab['object']['snmpportfinder'] = 'SNMP sync';
102 $tab['object']['editrspvs'] = 'RS pools';
103 $tab['object']['lvsconfig'] = 'keepalived.conf';
104 $tab['object']['autoports'] = 'AutoPorts';
105 $tab['object']['tags'] = 'Tags';
106 $tab['object']['files'] = 'Files';
107 $tab['object']['8021qorder'] = '802.1Q order';
108 $tab['object']['8021qports'] = '802.1Q ports';
109 $tab['object']['8021qsync'] = '802.1Q sync';
110 $tabhandler['object']['default'] = 'renderRackObject';
111 $tabhandler['object']['edit'] = 'renderEditObjectForm';
112 $tabhandler['object']['log'] = 'renderObjectLogEditor';
113 $tabhandler['object']['rackspace'] = 'renderRackSpaceForObject';
114 $tabhandler['object']['ports'] = 'renderPortsForObject';
115 $tabhandler['object']['ipv4'] = 'renderIPv4ForObject';
116 $tabhandler['object']['ipv6'] = 'renderIPv6ForObject';
117 $tabhandler['object']['nat4'] = 'renderNATv4ForObject';
118 $tabhandler['object']['livevlans'] = 'renderVLANMembership';
119 $tabhandler['object']['liveports'] = 'renderPortsInfo';
120 $tabhandler['object']['livecdp'] = 'renderDiscoveredNeighbors';
121 $tabhandler['object']['livelldp'] = 'renderDiscoveredNeighbors';
122 $tabhandler['object']['livehndp'] = 'renderDiscoveredNeighbors';
123 $tabhandler['object']['snmpportfinder'] = 'renderSNMPPortFinder';
124 $tabhandler['object']['lvsconfig'] = 'renderLVSConfig';
125 $tabhandler['object']['autoports'] = 'renderAutoPortsForm';
126 $tabhandler['object']['tags'] = 'renderEntityTags';
127 $tabhandler['object']['files'] = 'renderFilesForEntity';
128 $tabhandler['object']['editrspvs'] = 'renderObjectSLB';
129 $tabhandler['object']['8021qorder'] = 'render8021QOrderForm';
130 $tabhandler['object']['8021qports'] = 'renderObject8021QPorts';
131 $tabhandler['object']['8021qsync'] = 'renderObject8021QSync';
132 $trigger['object']['rackspace'] = 'trigger_rackspace';
133 $trigger['object']['ipv4'] = 'trigger_ipv4';
134 $trigger['object']['ipv6'] = 'trigger_ipv6';
135 $trigger['object']['nat4'] = 'trigger_natv4';
136 $trigger['object']['livevlans'] = 'trigger_livevlans';
137 $trigger['object']['liveports'] = 'trigger_liveports';
138 $trigger['object']['livecdp'] = 'trigger_LiveCDP';
139 $trigger['object']['livelldp'] = 'trigger_LiveLLDP';
140 $trigger['object']['livehndp'] = 'trigger_LiveHNDP';
141 $trigger['object']['snmpportfinder'] = 'trigger_snmpportfinder';
142 $trigger['object']['editrspvs'] = 'trigger_isloadbalancer';
143 $trigger['object']['lvsconfig'] = 'trigger_isloadbalancer';
144 $trigger['object']['autoports'] = 'trigger_autoports';
145 $trigger['object']['tags'] = 'trigger_tags';
146 $trigger['object']['8021qorder'] = 'trigger_object_8021qorder';
147 $trigger['object']['8021qports'] = 'trigger_object_8021qports';
148 $trigger['object']['8021qsync'] = 'trigger_object_8021qsync';
149 $ophandler['object']['rackspace']['updateObjectAllocation'] = 'updateObjectAllocation';
150 $ophandler['object']['ports']['addPort'] = 'addPortForObject';
151 $ophandler['object']['ports']['editPort'] = 'editPortForObject';
152 $ophandler['object']['ports']['linkPort'] = 'linkPortForObject';
153 $ophandler['object']['ports']['addMultiPorts'] = 'addMultiPorts';
154 $ophandler['object']['ports']['addBulkPorts'] = 'addBulkPorts';
155 $ophandler['object']['ports']['useup'] = 'useupPort';
156 $ophandler['object']['ports']['delPort'] = 'tableHandler';
157 $ophandler['object']['ports']['unlinkPort'] = 'tableHandler';
158 $ophandler['object']['ipv4']['updIPv4Allocation'] = 'updIPv4Allocation';
159 $ophandler['object']['ipv4']['addIPv4Allocation'] = 'addIPv4Allocation';
160 $ophandler['object']['ipv4']['delIPv4Allocation'] = 'delIPv4Allocation';
161 $ophandler['object']['ipv6']['updIPv6Allocation'] = 'updIPv6Allocation';
162 $ophandler['object']['ipv6']['addIPv6Allocation'] = 'addIPv6Allocation';
163 $ophandler['object']['ipv6']['delIPv6Allocation'] = 'delIPv6Allocation';
164 $ophandler['object']['edit']['clearSticker'] = 'clearSticker';
165 $ophandler['object']['edit']['update'] = 'updateObject';
166 $ophandler['object']['edit']['resetObject'] = 'resetObject';
167 $ophandler['object']['log']['add'] = 'addObjectlog';
168 $ophandler['object']['log']['del'] = 'tableHandler';
169 $ophandler['object']['nat4']['addNATv4Rule'] = 'addPortForwarding';
170 $ophandler['object']['nat4']['delNATv4Rule'] = 'delPortForwarding';
171 $ophandler['object']['nat4']['updNATv4Rule'] = 'updPortForwarding';
172 $ophandler['object']['livevlans']['setPortVLAN'] = 'setPortVLAN';
173 $ophandler['object']['livecdp']['importDPData'] = 'importDPData';
174 $ophandler['object']['livelldp']['importDPData'] = 'importDPData';
175 $ophandler['object']['autoports']['generate'] = 'generateAutoPorts';
176 $ophandler['object']['tags']['saveTags'] = 'saveEntityTags';
177 $ophandler['object']['files']['addFile'] = 'addFileToEntity';
178 $ophandler['object']['files']['linkFile'] = 'linkFileToEntity';
179 $ophandler['object']['files']['unlinkFile'] = 'unlinkFile';
180 $ophandler['object']['editrspvs']['addLB'] = 'addLoadBalancer';
181 $ophandler['object']['editrspvs']['delLB'] = 'tableHandler';
182 $ophandler['object']['editrspvs']['updLB'] = 'tableHandler';
183 $ophandler['object']['lvsconfig']['submitSLBConfig'] = 'submitSLBConfig';
184 $ophandler['object']['snmpportfinder']['querySNMPData'] = 'querySNMPData';
185 $ophandler['object']['8021qorder']['add'] = 'add8021QOrder';
186 $ophandler['object']['8021qorder']['del'] = 'del8021QOrder';
187 $ophandler['object']['8021qports']['save8021QConfig'] = 'save8021QPorts';
188 $ophandler['object']['8021qports']['exec8021QRecalc'] = 'process8021QRecalcRequest';
189 $ophandler['object']['8021qsync']['exec8021QPull'] = 'process8021QSyncRequest';
190 $ophandler['object']['8021qsync']['exec8021QPush'] = 'process8021QSyncRequest';
191 $ophandler['object']['8021qsync']['resolve8021QConflicts'] = 'resolve8021QConflicts';
192 $delayauth['object']['8021qports']['save8021QConfig'] = TRUE;
193 $delayauth['object']['livevlans']['setPortVLAN'] = TRUE;
194
195 $page['ipv4space']['parent'] = 'index';
196 $tab['ipv4space']['default'] = 'Browse';
197 $tab['ipv4space']['newrange'] = 'Manage';
198 $tabhandler['ipv4space']['default'] = 'renderIPv4Space';
199 $tabhandler['ipv4space']['newrange'] = 'renderIPv4SpaceEditor';
200 $ophandler['ipv4space']['newrange']['addIPv4Prefix'] = 'addIPv4Prefix';
201 $ophandler['ipv4space']['newrange']['delIPv4Prefix'] = 'delIPv4Prefix';
202
203 $page['ipv6space']['parent'] = 'index';
204 $tab['ipv6space']['default'] = 'Browse';
205 $tab['ipv6space']['newrange'] = 'Manage';
206 $tabhandler['ipv6space']['default'] = 'renderIPv6Space';
207 $tabhandler['ipv6space']['newrange'] = 'renderIPv6SpaceEditor';
208 $ophandler['ipv6space']['newrange']['addIPv6Prefix'] = 'addIPv6Prefix';
209 $ophandler['ipv6space']['newrange']['delIPv6Prefix'] = 'delIPv6Prefix';
210
211 $page['ipv4net']['parent'] = 'ipv4space';
212 $page['ipv4net']['bypass'] = 'id';
213 $page['ipv4net']['bypass_type'] = 'uint';
214 $tab['ipv4net']['default'] = 'Browse';
215 $tab['ipv4net']['properties'] = 'Properties';
216 $tab['ipv4net']['liveptr'] = 'Live PTR';
217 $tab['ipv4net']['tags'] = 'Tags';
218 $tab['ipv4net']['files'] = 'Files';
219 $tab['ipv4net']['8021q'] = '802.1Q';
220 $tabhandler['ipv4net']['default'] = 'renderIPv4Network';
221 $tabhandler['ipv4net']['properties'] = 'renderIPNetworkProperties';
222 $tabhandler['ipv4net']['liveptr'] = 'renderLivePTR';
223 $tabhandler['ipv4net']['tags'] = 'renderEntityTags';
224 $tabhandler['ipv4net']['files'] = 'renderFilesForEntity';
225 $tabhandler['ipv4net']['8021q'] = 'renderVLANIPLinks';
226 $trigger['ipv4net']['tags'] = 'trigger_tags';
227 $trigger['ipv4net']['8021q'] = 'trigger_ipv4net_vlanconfig';
228 $ophandler['ipv4net']['properties']['editRange'] = 'tableHandler';
229 $ophandler['ipv4net']['liveptr']['importPTRData'] = 'importPTRData';
230 $ophandler['ipv4net']['tags']['saveTags'] = 'saveEntityTags';
231 $ophandler['ipv4net']['files']['addFile'] = 'addFileToEntity';
232 $ophandler['ipv4net']['files']['linkFile'] = 'linkFileToEntity';
233 $ophandler['ipv4net']['files']['unlinkFile'] = 'unlinkFile';
234 $ophandler['ipv4net']['8021q']['bind'] = 'bindVLANtoIPv4';
235 $ophandler['ipv4net']['8021q']['unbind'] = 'unbindVLANfromIPv4';
236
237 $page['ipv6net']['parent'] = 'ipv6space';
238 $page['ipv6net']['bypass'] = 'id';
239 $page['ipv6net']['bypass_type'] = 'uint';
240 $tab['ipv6net']['default'] = 'Browse';
241 $tab['ipv6net']['properties'] = 'Properties';
242 $tab['ipv6net']['tags'] = 'Tags';
243 $tab['ipv6net']['files'] = 'Files';
244 $tab['ipv6net']['8021q'] = '802.1Q';
245 $tabhandler['ipv6net']['default'] = 'renderIPv6Network';
246 $tabhandler['ipv6net']['properties'] = 'renderIPNetworkProperties';
247 $tabhandler['ipv6net']['tags'] = 'renderEntityTags';
248 $tabhandler['ipv6net']['files'] = 'renderFilesForEntity';
249 $tabhandler['ipv6net']['8021q'] = 'renderVLANIPLinks';
250 $trigger['ipv6net']['tags'] = 'trigger_tags';
251 $trigger['ipv6net']['8021q'] = 'trigger_ipv6net_vlanconfig';
252 $ophandler['ipv6net']['properties']['editRange'] = 'tableHandler';
253 $ophandler['ipv6net']['tags']['saveTags'] = 'saveEntityTags';
254 $ophandler['ipv6net']['files']['addFile'] = 'addFileToEntity';
255 $ophandler['ipv6net']['files']['linkFile'] = 'linkFileToEntity';
256 $ophandler['ipv6net']['files']['unlinkFile'] = 'unlinkFile';
257 $ophandler['ipv6net']['8021q']['bind'] = 'bindVLANtoIPv6';
258 $ophandler['ipv6net']['8021q']['unbind'] = 'unbindVLANfromIPv6';
259
260 $page['ipaddress']['parent'] = 'ipv4net';
261 $page['ipaddress']['bypass'] = 'ip';
262 $page['ipaddress']['bypass_type'] = 'inet4';
263 $tab['ipaddress']['default'] = 'Browse';
264 $tab['ipaddress']['properties'] = 'Properties';
265 $tab['ipaddress']['assignment'] = 'Allocation';
266 $tabhandler['ipaddress']['default'] = 'renderIPAddress';
267 $tabhandler['ipaddress']['properties'] = 'renderIPAddressProperties';
268 $tabhandler['ipaddress']['assignment'] = 'renderIPAddressAllocations';
269 $ophandler['ipaddress']['properties']['editAddress'] = 'editAddress';
270 $ophandler['ipaddress']['assignment']['delIPv4Allocation'] = 'delIPv4Allocation';
271 $ophandler['ipaddress']['assignment']['updIPv4Allocation'] = 'updIPv4Allocation';
272 $ophandler['ipaddress']['assignment']['addIPv4Allocation'] = 'addIPv4Allocation';
273
274 $page['ipv6address']['parent'] = 'ipv6net';
275 $page['ipv6address']['bypass'] = 'ip';
276 $page['ipv6address']['bypass_type'] = 'string';
277 $tab['ipv6address']['default'] = 'Browse';
278 $tab['ipv6address']['properties'] = 'Properties';
279 $tab['ipv6address']['assignment'] = 'Allocation';
280 $tabhandler['ipv6address']['default'] = 'renderIPAddress';
281 $tabhandler['ipv6address']['properties'] = 'renderIPAddressProperties';
282 $tabhandler['ipv6address']['assignment'] = 'renderIPAddressAllocations';
283 $ophandler['ipv6address']['properties']['editAddress'] = 'editv6Address';
284 $ophandler['ipv6address']['assignment']['delIPv6Allocation'] = 'delIPv6Allocation';
285 $ophandler['ipv6address']['assignment']['updIPv6Allocation'] = 'updIPv6Allocation';
286 $ophandler['ipv6address']['assignment']['addIPv6Allocation'] = 'addIPv6Allocation';
287
288 $page['ipv4slb']['title'] = 'IPv4 SLB';
289 $page['ipv4slb']['parent'] = 'index';
290 $tab['ipv4slb']['default'] = 'Browse';
291 $tab['ipv4slb']['defconfig'] = 'Default configs';
292 $tabhandler['ipv4slb']['default'] = 'renderIPv4SLB';
293 $tabhandler['ipv4slb']['defconfig'] = 'renderSLBDefConfig';
294 $ophandler['ipv4slb']['defconfig']['save'] = 'updateSLBDefConfig';
295
296 $page['ipv4vslist']['title'] = 'Virtual services';
297 $page['ipv4vslist']['parent'] = 'ipv4slb';
298 $tab['ipv4vslist']['default'] = 'View';
299 $tab['ipv4vslist']['edit'] = 'Edit';
300 $tabhandler['ipv4vslist']['default'] = 'renderVSList';
301 $tabhandler['ipv4vslist']['edit'] = 'renderVSListEditForm';
302 $ophandler['ipv4vslist']['edit']['add'] = 'addVService';
303 $ophandler['ipv4vslist']['edit']['del'] = 'deleteVService';
304
305 $page['ipv4vs']['parent'] = 'ipv4vslist';
306 $page['ipv4vs']['bypass'] = 'vs_id';
307 $page['ipv4vs']['bypass_type'] = 'uint';
308 $tab['ipv4vs']['default'] = 'View';
309 $tab['ipv4vs']['edit'] = 'Edit';
310 $tab['ipv4vs']['editlblist'] = 'Load balancers';
311 $tab['ipv4vs']['tags'] = 'Tags';
312 $tab['ipv4vs']['files'] = 'Files';
313 $tabhandler['ipv4vs']['default'] = 'renderVirtualService';
314 $tabhandler['ipv4vs']['edit'] = 'renderEditVService';
315 $tabhandler['ipv4vs']['editlblist'] = 'renderVServiceLBForm';
316 $tabhandler['ipv4vs']['tags'] = 'renderEntityTags';
317 $tabhandler['ipv4vs']['files'] = 'renderFilesForEntity';
318 $trigger['ipv4vs']['tags'] = 'trigger_tags';
319 $ophandler['ipv4vs']['edit']['updIPv4VS'] = 'updateVService';
320 $ophandler['ipv4vs']['editlblist']['addLB'] = 'addLoadBalancer';
321 $ophandler['ipv4vs']['editlblist']['delLB'] = 'tableHandler';
322 $ophandler['ipv4vs']['editlblist']['updLB'] = 'tableHandler';
323 $ophandler['ipv4vs']['tags']['saveTags'] = 'saveEntityTags';
324 $ophandler['ipv4vs']['files']['addFile'] = 'addFileToEntity';
325 $ophandler['ipv4vs']['files']['linkFile'] = 'linkFileToEntity';
326 $ophandler['ipv4vs']['files']['unlinkFile'] = 'unlinkFile';
327
328 $page['ipv4rsplist']['title'] = 'RS pools';
329 $page['ipv4rsplist']['parent'] = 'ipv4slb';
330 $tab['ipv4rsplist']['default'] = 'View';
331 $tab['ipv4rsplist']['edit'] = 'Edit';
332 $tabhandler['ipv4rsplist']['default'] = 'renderRSPoolList';
333 $tabhandler['ipv4rsplist']['edit'] = 'editRSPools';
334 $ophandler['ipv4rsplist']['edit']['add'] = 'addRSPool';
335 $ophandler['ipv4rsplist']['edit']['del'] = 'deleteRSPool';
336
337 $page['ipv4rspool']['parent'] = 'ipv4rsplist';
338 $page['ipv4rspool']['bypass'] = 'pool_id';
339 $page['ipv4rspool']['bypass_type'] = 'uint';
340 $tab['ipv4rspool']['default'] = 'View';
341 $tab['ipv4rspool']['edit'] = 'Edit';
342 $tab['ipv4rspool']['editlblist'] = 'Load balancers';
343 $tab['ipv4rspool']['editrslist'] = 'RS list';
344 $tab['ipv4rspool']['rsinservice'] = 'RS in service';
345 $tab['ipv4rspool']['tags'] = 'Tags';
346 $tab['ipv4rspool']['files'] = 'Files';
347 $trigger['ipv4rspool']['rsinservice'] = 'trigger_poolrscount';
348 $trigger['ipv4rspool']['tags'] = 'trigger_tags';
349 $tabhandler['ipv4rspool']['default'] = 'renderRSPool';
350 $tabhandler['ipv4rspool']['edit'] = 'renderEditRSPool';
351 $tabhandler['ipv4rspool']['editrslist'] = 'renderRSPoolServerForm';
352 $tabhandler['ipv4rspool']['editlblist'] = 'renderRSPoolLBForm';
353 $tabhandler['ipv4rspool']['rsinservice'] = 'renderRSPoolRSInServiceForm';
354 $tabhandler['ipv4rspool']['tags'] = 'renderEntityTags';
355 $tabhandler['ipv4rspool']['files'] = 'renderFilesForEntity';
356 $ophandler['ipv4rspool']['edit']['updIPv4RSP'] = 'tableHandler';
357 $ophandler['ipv4rspool']['editrslist']['addRS'] = 'addRealServer';
358 $ophandler['ipv4rspool']['editrslist']['delRS'] = 'tableHandler';
359 $ophandler['ipv4rspool']['editrslist']['updRS'] = 'updateRealServer';
360 $ophandler['ipv4rspool']['editrslist']['addMany'] = 'addRealServers';
361 $ophandler['ipv4rspool']['editlblist']['addLB'] = 'addLoadBalancer';
362 $ophandler['ipv4rspool']['editlblist']['delLB'] = 'tableHandler';
363 $ophandler['ipv4rspool']['editlblist']['updLB'] = 'tableHandler';
364 $ophandler['ipv4rspool']['rsinservice']['upd'] = 'updateRSInService';
365 $ophandler['ipv4rspool']['tags']['saveTags'] = 'saveEntityTags';
366 $ophandler['ipv4rspool']['files']['addFile'] = 'addFileToEntity';
367 $ophandler['ipv4rspool']['files']['linkFile'] = 'linkFileToEntity';
368 $ophandler['ipv4rspool']['files']['unlinkFile'] = 'unlinkFile';
369
370 $page['rservers']['title'] = 'Real servers';
371 $page['rservers']['parent'] = 'ipv4slb';
372 $page['rservers']['handler'] = 'renderRealServerList';
373
374 $page['lbs']['title'] = 'Load balancers';
375 $page['lbs']['parent'] = 'ipv4slb';
376 $page['lbs']['handler'] = 'renderLBList';
377
378 $page['search']['handler'] = 'searchHandler';
379 $page['search']['parent'] = 'index';
380 $page['search']['bypass'] = 'q';
381
382 $page['config']['title'] = 'Configuration';
383 $page['config']['handler'] = 'renderConfigMainpage';
384 $page['config']['parent'] = 'index';
385
386 $page['userlist']['title'] = 'Local users';
387 $page['userlist']['parent'] = 'config';
388 $tab['userlist']['default'] = 'View';
389 $tab['userlist']['edit'] = 'Edit';
390 $tabhandler['userlist']['default'] = 'renderUserList';
391 $tabhandler['userlist']['edit'] = 'renderUserListEditor';
392 $ophandler['userlist']['edit']['updateUser'] = 'updateUser';
393 $ophandler['userlist']['edit']['createUser'] = 'createUser';
394
395 $page['user']['parent'] = 'userlist';
396 $page['user']['bypass'] = 'user_id';
397 $page['user']['bypass_type'] = 'uint';
398 $tab['user']['default'] = 'View';
399 $tab['user']['tags'] = 'Tags';
400 $tab['user']['files'] = 'Files';
401 $tabhandler['user']['default'] = 'renderUser';
402 $tabhandler['user']['tags'] = 'renderEntityTags';
403 $tabhandler['user']['files'] = 'renderFilesForEntity';
404 $ophandler['user']['tags']['saveTags'] = 'saveEntityTags';
405 $ophandler['user']['files']['addFile'] = 'addFileToEntity';
406 $ophandler['user']['files']['linkFile'] = 'linkFileToEntity';
407 $ophandler['user']['files']['unlinkFile'] = 'unlinkFile';
408
409 $page['perms']['title'] = 'Permissions';
410 $page['perms']['parent'] = 'config';
411 $tab['perms']['default'] = 'View';
412 $tab['perms']['edit'] = 'Edit';
413 $tabhandler['perms']['default'] = 'renderRackCodeViewer';
414 $tabhandler['perms']['edit'] = 'renderRackCodeEditor';
415 $ophandler['perms']['edit']['saveRackCode'] = 'saveRackCode';
416
417 $page['portmap']['title'] = 'Port compatibility';
418 $page['portmap']['parent'] = 'config';
419 $tab['portmap']['default'] = 'View';
420 $tab['portmap']['edit'] = 'Edit';
421 $tabhandler['portmap']['default'] = 'renderPortOIFCompatViewer';
422 $tabhandler['portmap']['edit'] = 'renderPortOIFCompatEditor';
423 $ophandler['portmap']['edit']['add'] = 'tableHandler';
424 $ophandler['portmap']['edit']['del'] = 'tableHandler';
425
426 $page['portifcompat']['title'] = 'Enabled port types';
427 $page['portifcompat']['parent'] = 'config';
428 $tab['portifcompat']['default'] = 'View';
429 $tab['portifcompat']['edit'] = 'Edit';
430 $tabhandler['portifcompat']['default'] = 'renderPortIFCompat';
431 $tabhandler['portifcompat']['edit'] = 'renderPortIFCompatEditor';
432 $ophandler['portifcompat']['edit']['add'] = 'addPortInterfaceCompat';
433 $ophandler['portifcompat']['edit']['del'] = 'tableHandler';
434 $ophandler['portifcompat']['edit']['addPack'] = 'addPortInterfaceCompatPack';
435 $ophandler['portifcompat']['edit']['delPack'] = 'delPortInterfaceCompatPack';
436
437 $page['attrs']['title'] = 'Attributes';
438 $page['attrs']['parent'] = 'config';
439 $tab['attrs']['default'] = 'View';
440 $tab['attrs']['editattrs'] = 'Edit attributes';
441 $tab['attrs']['editmap'] = 'Edit map';
442 $tabhandler['attrs']['default'] = 'renderAttributes';
443 $tabhandler['attrs']['editattrs'] = 'renderEditAttributesForm';
444 $tabhandler['attrs']['editmap'] = 'renderEditAttrMapForm';
445 $ophandler['attrs']['editattrs']['add'] = 'tableHandler';
446 $ophandler['attrs']['editattrs']['del'] = 'tableHandler';
447 $ophandler['attrs']['editattrs']['upd'] = 'changeAttribute';
448 $ophandler['attrs']['editmap']['add'] = 'supplementAttrMap';
449 $ophandler['attrs']['editmap']['del'] = 'tableHandler';
450
451 $page['dict']['title'] = 'Dictionary';
452 $page['dict']['parent'] = 'config';
453 $tab['dict']['default'] = 'View';
454 $tab['dict']['chapters'] = 'Manage chapters';
455 $tabhandler['dict']['default'] = 'renderDictionary';
456 $tabhandler['dict']['chapters'] = 'renderChaptersEditor';
457 $ophandler['dict']['chapters']['add'] = 'tableHandler';
458 $ophandler['dict']['chapters']['del'] = 'delChapter';
459 $ophandler['dict']['chapters']['upd'] = 'updateChapter';
460
461 $page['chapter']['parent'] = 'dict';
462 $page['chapter']['bypass'] = 'chapter_no';
463 $page['chapter']['bypass_type'] = 'uint';
464 $tab['chapter']['default'] = 'View';
465 $tab['chapter']['edit'] = 'Edit';
466 $tabhandler['chapter']['default'] = 'renderChapter';
467 $tabhandler['chapter']['edit'] = 'renderChapterEditor';
468 $ophandler['chapter']['edit']['add'] = 'tableHandler';
469 $ophandler['chapter']['edit']['del'] = 'tableHandler';
470 $ophandler['chapter']['edit']['upd'] = 'updateDictionary';
471
472 $page['ui']['title'] = 'User interface';
473 $page['ui']['parent'] = 'config';
474 $tab['ui']['default'] = 'View';
475 $tab['ui']['edit'] = 'Change';
476 $tab['ui']['reset'] = 'Reset';
477 $tabhandler['ui']['default'] = 'renderUIConfig';
478 $tabhandler['ui']['edit'] = 'renderUIConfigEditForm';
479 $tabhandler['ui']['reset'] = 'renderUIResetForm';
480 $ophandler['ui']['edit']['upd'] = 'updateUI';
481 $ophandler['ui']['reset']['go'] = 'resetUIConfig';
482
483 $page['tagtree']['title'] = 'Tag tree';
484 $page['tagtree']['parent'] = 'config';
485 $tab['tagtree']['default'] = 'View';
486 $tab['tagtree']['edit'] = 'Edit';
487 $tabhandler['tagtree']['default'] = 'renderTagTree';
488 $tabhandler['tagtree']['edit'] = 'renderTagTreeEditor';
489 $ophandler['tagtree']['edit']['createTag'] = 'tableHandler';
490 $ophandler['tagtree']['edit']['destroyTag'] = 'tableHandler';
491 $ophandler['tagtree']['edit']['updateTag'] = 'tableHandler';
492
493 $page['myaccount']['title'] = 'My account';
494 $page['myaccount']['parent'] = 'config';
495 $tab['myaccount']['default'] = 'Info';
496 $tab['myaccount']['mypassword'] = 'Password change';
497 $tab['myaccount']['interface'] = 'Interface preferences';
498 $trigger['myaccount']['mypassword'] = 'trigger_passwdchange';
499 $tabhandler['myaccount']['default'] = 'renderMyAccount';
500 $tabhandler['myaccount']['mypassword'] = 'renderMyPasswordEditor';
501 $tabhandler['myaccount']['interface'] = 'renderMyPreferences';
502 $ophandler['myaccount']['mypassword']['changeMyPassword'] = 'changeMyPassword';
503 $ophandler['myaccount']['interface']['upd'] = 'saveMyPreferences';
504 $ophandler['myaccount']['interface']['reset'] = 'resetMyPreference';
505
506 $page['reports']['title'] = 'Reports';
507 $page['reports']['parent'] = 'index';
508 $tab['reports']['default'] = 'System';
509 $tab['reports']['rackcode'] = 'RackCode';
510 $tab['reports']['ipv4'] = 'IPv4';
511 $tab['reports']['ipv6'] = 'IPv6';
512 $tab['reports']['ports'] = 'Ports';
513 $tab['reports']['8021q'] = '802.1Q';
514 $tab['reports']['local'] = getConfigVar ('enterprise');
515 $trigger['reports']['local'] = 'trigger_localreports';
516 $tabhandler['reports']['default'] = 'renderSystemReports';
517 $tabhandler['reports']['rackcode'] = 'renderRackCodeReports';
518 $tabhandler['reports']['ipv4'] = 'renderIPv4Reports';
519 $tabhandler['reports']['ipv6'] = 'renderIPv6Reports';
520 $tabhandler['reports']['ports'] = 'renderPortsReport';
521 $tabhandler['reports']['8021q'] = 'render8021QReport';
522 $tabhandler['reports']['local'] = 'renderLocalReports';
523
524 $page['files']['title'] = 'Files';
525 $page['files']['parent'] = 'index';
526 $tab['files']['default'] = 'Browse';
527 $tab['files']['manage'] = 'Manage';
528 $tabhandler['files']['default'] = 'renderFileBrowser';
529 $tabhandler['files']['manage'] = 'renderFileManager';
530 $ophandler['files']['manage']['addFile'] = 'addFileWithoutLink';
531 $ophandler['files']['manage']['unlinkFile'] = 'unlinkFile';
532 $ophandler['files']['manage']['deleteFile'] = 'deleteFile';
533
534 $page['file']['bypass'] = 'file_id';
535 $page['file']['bypass_type'] = 'uint';
536 $page['file']['parent'] = 'files';
537 $tab['file']['default'] = 'View';
538 $tab['file']['edit'] = 'Properties';
539 $tab['file']['tags'] = 'Tags';
540 $tab['file']['editText'] = 'Edit text';
541 $tab['file']['replaceData'] = 'Upload replacement';
542 $tab['file']['download'] = 'Download';
543 $trigger['file']['tags'] = 'trigger_tags';
544 $trigger['file']['editText'] = 'trigger_file_editText';
545 $tabhandler['file']['default'] = 'renderFile';
546 $tabhandler['file']['edit'] = 'renderFileProperties';
547 $tabhandler['file']['tags'] = 'renderEntityTags';
548 $tabhandler['file']['editText'] = 'renderTextEditor';
549 $tabhandler['file']['replaceData'] = 'renderFileReuploader';
550 $tabhandler['file']['download'] = 'renderFileDownloader';
551 $ophandler['file']['edit']['updateFile'] = 'tableHandler';
552 $ophandler['file']['tags']['saveTags'] = 'saveEntityTags';
553 $ophandler['file']['editText']['updateFileText'] = 'updateFileText';
554 $ophandler['file']['replaceData']['replaceFile'] = 'replaceFile';
555
556 $page['8021q']['title'] = '802.1Q';
557 $page['8021q']['parent'] = 'index';
558 $tab['8021q']['default'] = 'Status';
559 $tab['8021q']['vdlist'] = 'Manage domains';
560 $tab['8021q']['vstlist'] = 'Manage templates';
561 $tabhandler['8021q']['default'] = 'render8021QStatus';
562 $tabhandler['8021q']['vdlist'] = 'renderVLANDomainListEditor';
563 $tabhandler['8021q']['vstlist'] = 'renderVSTListEditor';
564 $ophandler['8021q']['vdlist']['add'] = 'createVLANDomain';
565 $ophandler['8021q']['vdlist']['del'] = 'destroyVLANDomain';
566 $ophandler['8021q']['vdlist']['upd'] = 'tableHandler';
567 $ophandler['8021q']['vstlist']['add'] = 'addVLANSwitchTemplate';
568 $ophandler['8021q']['vstlist']['del'] = 'delVLANSwitchTemplate';
569 $ophandler['8021q']['vstlist']['upd'] = 'tableHandler';
570
571 $page['vlandomain']['parent'] = '8021q';
572 $page['vlandomain']['bypass'] = 'vdom_id';
573 $page['vlandomain']['bypass_type'] = 'uint';
574 $tab['vlandomain']['default'] = 'View';
575 $tab['vlandomain']['vlanlist'] = 'VLAN list';
576 $tab['vlandomain']['8021qorder'] = '802.1Q orders';
577 $tabhandler['vlandomain']['default'] = 'renderVLANDomain';
578 $tabhandler['vlandomain']['8021qorder'] = 'render8021QOrderForm';
579 $tabhandler['vlandomain']['vlanlist'] = 'renderVLANDomainVLANList';
580 $ophandler['vlandomain']['8021qorder']['add'] = 'add8021QOrder';
581 $ophandler['vlandomain']['8021qorder']['del'] = 'del8021QOrder';
582 $ophandler['vlandomain']['vlanlist']['add'] = 'tableHandler';
583 $ophandler['vlandomain']['vlanlist']['del'] = 'delVLANDescription';
584 $ophandler['vlandomain']['vlanlist']['upd'] = 'updVLANDescription';
585
586 $page['vlan']['parent'] = 'vlandomain';
587 $page['vlan']['bypass'] = 'vlan_ck';
588 $page['vlan']['bypass_type'] = 'string';
589 $tab['vlan']['default'] = 'View';
590 $tab['vlan']['ipv4'] = 'IPv4';
591 $tab['vlan']['ipv6'] = 'IPv6';
592 $trigger['vlan']['ipv4'] = 'trigger_vlan_ipv4net';
593 $trigger['vlan']['ipv6'] = 'trigger_vlan_ipv6net';
594 $tabhandler['vlan']['default'] = 'renderVLANInfo';
595 $tabhandler['vlan']['ipv4'] = 'renderVLANIPLinks';
596 $tabhandler['vlan']['ipv6'] = 'renderVLANIPLinks';
597 $ophandler['vlan']['ipv4']['bind'] = 'bindVLANtoIPv4';
598 $ophandler['vlan']['ipv4']['unbind'] = 'unbindVLANfromIPv4';
599 $ophandler['vlan']['ipv6']['bind'] = 'bindVLANtoIPv6';
600 $ophandler['vlan']['ipv6']['unbind'] = 'unbindVLANfromIPv6';
601
602 $page['vst']['parent'] = '8021q';
603 $page['vst']['bypass'] = 'vst_id';
604 $page['vst']['bypass_type'] = 'uint';
605 $tab['vst']['default'] = 'View';
606 $tab['vst']['editrules'] = 'Edit';
607 $tab['vst']['8021qorder'] = '802.1Q orders';
608 $trigger['vst']['editrules'] = 'trigger_vst_editrules';
609 $tabhandler['vst']['default'] = 'renderVST';
610 $tabhandler['vst']['editvst'] = 'renderVSTEditor';
611 $tabhandler['vst']['editrules'] = 'renderVSTRulesEditor';
612 $tabhandler['vst']['8021qorder'] = 'render8021QOrderForm';
613 $ophandler['vst']['editvst']['upd'] = 'updVLANSwitchTemplate';
614 $ophandler['vst']['editrules']['clone'] = 'cloneVSTRule';
615 $ophandler['vst']['editrules']['upd'] = 'updVSTRule';
616 $ophandler['vst']['8021qorder']['add'] = 'add8021QOrder';
617 $ophandler['vst']['8021qorder']['del'] = 'del8021QOrder';
618
619 $page['dqueue']['parent'] = '8021q';
620 $page['dqueue']['bypass'] = 'dqcode';
621 $page['dqueue']['bypass_type'] = 'string';
622 $tab['dqueue']['default'] = 'View';
623 $tabhandler['dqueue']['default'] = 'renderDeployQueue';
624
625 $page['objectlog']['title'] = 'Log records';
626 $page['objectlog']['parent'] = 'index';
627 $tab['objectlog']['default'] = 'View';
628 #$tab['objectlog']['add'] = 'Add'; // FIXME: finish, then enable
629 $tabhandler['objectlog']['default'] = 'allObjectLogs';
630 #$tabhandler['objectlog']['add'] = 'renderGlobalLogEditor';
631
632 ?>