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