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