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