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