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