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