Merge pull request #115 from github138/ipaddress
[racktables] / wwwroot / inc / navigation.php
1 <?php
2
3 # This file is a part of RackTables, a datacenter and server room management
4 # framework. See accompanying file "COPYING" for the full copyright and
5 # licensing information.
6
7 /*
8
9 This file contains a series of arrays, which define RackTables as a tree
10 of discrete views ("pages"). Each such page may be in turn split info a set of
11 "tabs". In the latter case it is also possible to define a set of "operations"
12 for a particular combination of page and tab (location). These operations
13 represent actions requested by the user and often expect additional data
14 provided to be executed correctly (constraints on the additional data are
15 defined and validated in ophandlers.php).
16
17 Every page split into tabs must define a tab internally named "default". It is
18 assumed, that this default tab never defines any operations and thus remains
19 read-only.
20
21 */
22
23 $page = array();
24 $tab = array();
25 $trigger = array();
26
27 $ophandler = array();
28 $tabhandler = array();
29 $hook = array();
30 $ophandlers_stack = array();
31 $tabhandlers_stack = array();
32 $hooks_stack = array();
33
34 $delayauth = array();
35 $svghandler = array();
36 $ajaxhandler = array();
37
38 $indexlayout = array
39 (
40 array ('rackspace', 'depot', 'ipv4space', 'ipv6space'),
41 array ('files', 'reports', 'ipv4slb', '8021q'),
42 array ('config', 'objectlog', 'virtual', 'cables'),
43 );
44
45 $page['index']['title'] = 'Main page';
46 $page['index']['handler'] = 'renderIndex';
47
48 $page['rackspace']['title'] = 'Rackspace';
49 $page['rackspace']['parent'] = 'index';
50 $tab['rackspace']['default'] = 'Browse';
51 $tab['rackspace']['editlocations'] = 'Manage locations';
52 $tab['rackspace']['editrows'] = 'Manage rows';
53 $tab['rackspace']['history'] = 'History';
54 $tabhandler['rackspace']['default'] = 'renderRackspace';
55 $tabhandler['rackspace']['editlocations'] = 'renderRackspaceLocationEditor';
56 $tabhandler['rackspace']['editrows'] = 'renderRackspaceRowEditor';
57 $tabhandler['rackspace']['history'] = 'renderRackspaceHistory';
58 $ophandler['rackspace']['editlocations']['addLocation'] = 'addLocation';
59 $ophandler['rackspace']['editlocations']['updateLocation'] = 'updateLocation';
60 $ophandler['rackspace']['editlocations']['deleteLocation'] = 'deleteLocation';
61 $ophandler['rackspace']['editrows']['addRow'] = 'addRow';
62 $ophandler['rackspace']['editrows']['updateRow'] = 'updateRow';
63 $ophandler['rackspace']['editrows']['deleteRow'] = 'deleteRow';
64
65 $page['depot']['parent'] = 'index';
66 $page['depot']['title'] = 'Objects';
67 $tab['depot']['default'] = 'Browse';
68 $tab['depot']['addmore'] = 'Add more';
69 $tabhandler['depot']['default'] = 'renderDepot';
70 $tabhandler['depot']['addmore'] = 'renderAddMultipleObjectsForm';
71 $ophandler['depot']['addmore']['addObjects'] = 'addMultipleObjects';
72 $ophandler['depot']['addmore']['addLotOfObjects'] = 'addLotOfObjects';
73 $ophandler['depot']['addmore']['deleteObject'] = 'deleteObject';
74
75 $page['location']['bypass'] = 'location_id';
76 $page['location']['bypass_type'] = 'uint';
77 $page['location']['parent'] = 'rackspace';
78 $tab['location']['default'] = 'View';
79 $tab['location']['edit'] = 'Properties';
80 $tab['location']['log'] = 'Log';
81 $tab['location']['tags'] = 'Tags';
82 $tab['location']['files'] = 'Files';
83 $tabhandler['location']['default'] = 'renderLocationPage';
84 $tabhandler['location']['edit'] = 'renderEditLocationForm';
85 $tabhandler['location']['log'] = 'renderObjectLogEditor';
86 $tabhandler['location']['tags'] = 'renderEntityTags';
87 $tabhandler['location']['files'] = 'renderFilesForEntity';
88 $trigger['location']['tags'] = 'trigger_tags';
89 $ophandler['location']['edit']['clearSticker'] = 'clearSticker';
90 $ophandler['location']['edit']['updateLocation'] = 'updateLocation';
91 $ophandler['location']['edit']['deleteLocation'] = 'deleteLocation';
92 $ophandler['location']['log']['add'] = 'addObjectlog';
93 $ophandler['location']['log']['del'] = 'tableHandler';
94 $ophandler['location']['tags']['saveTags'] = 'saveEntityTags';
95 $ophandler['location']['files']['addFile'] = 'addFileToEntity';
96 $ophandler['location']['files']['linkFile'] = 'linkFileToEntity';
97 $ophandler['location']['files']['unlinkFile'] = 'unlinkFile';
98
99 $page['row']['bypass'] = 'row_id';
100 $page['row']['bypass_type'] = 'uint';
101 $page['row']['parent'] = 'rackspace';
102 $tab['row']['default'] = 'View';
103 $tab['row']['edit'] = 'Properties';
104 $tab['row']['editracks'] = 'Manage racks';
105 $tab['row']['newrack'] = 'Add new rack';
106 $tab['row']['log'] = 'Log';
107 $tab['row']['tagroller'] = 'Tag roller';
108 $tab['row']['files'] = 'Files';
109 $tabhandler['row']['default'] = 'renderRow';
110 $tabhandler['row']['edit'] = 'renderEditRowForm';
111 $tabhandler['row']['editracks'] = 'renderRackSortForm';
112 $tabhandler['row']['newrack'] = 'renderNewRackForm';
113 $tabhandler['row']['log'] = 'renderObjectLogEditor';
114 $tabhandler['row']['tagroller'] = 'renderTagRollerForRow';
115 $tabhandler['row']['files'] = 'renderFilesForEntity';
116 $ophandler['row']['edit']['clearSticker'] = 'clearSticker';
117 $ophandler['row']['edit']['deleteRow'] = 'deleteRow';
118 $ophandler['row']['edit']['updateRow'] = 'updateRow';
119 $ophandler['row']['newrack']['addRack'] = 'addRack';
120 $ophandler['row']['log']['add'] = 'addObjectlog';
121 $ophandler['row']['log']['del'] = 'tableHandler';
122 $ophandler['row']['tagroller']['rollTags'] = 'rollTags';
123 $ophandler['row']['files']['addFile'] = 'addFileToEntity';
124 $ophandler['row']['files']['linkFile'] = 'linkFileToEntity';
125 $ophandler['row']['files']['unlinkFile'] = 'unlinkFile';
126
127 $page['rack']['bypass'] = 'rack_id';
128 $page['rack']['bypass_type'] = 'uint';
129 $page['rack']['parent'] = 'row';
130 $tab['rack']['default'] = 'View';
131 $tab['rack']['edit'] = 'Properties';
132 $tab['rack']['log'] = 'Log';
133 $tab['rack']['design'] = 'Design';
134 $tab['rack']['problems'] = 'Problems';
135 $tab['rack']['tags'] = 'Tags';
136 $tab['rack']['files'] = 'Files';
137 $tabhandler['rack']['default'] = 'renderRackPage';
138 $tabhandler['rack']['edit'] = 'renderEditRackForm';
139 $tabhandler['rack']['log'] = 'renderObjectLogEditor';
140 $tabhandler['rack']['design'] = 'renderRackDesign';
141 $tabhandler['rack']['problems'] = 'renderRackProblems';
142 $tabhandler['rack']['tags'] = 'renderEntityTags';
143 $tabhandler['rack']['files'] = 'renderFilesForEntity';
144 $trigger['rack']['tags'] = 'trigger_tags';
145 $ophandler['rack']['design']['updateRack'] = 'updateRackDesign';
146 $ophandler['rack']['problems']['updateRack'] = 'updateRackProblems';
147 $ophandler['rack']['edit']['clearSticker'] = 'clearSticker';
148 $ophandler['rack']['edit']['updateRack'] = 'updateRack';
149 $ophandler['rack']['edit']['deleteRack'] = 'deleteRack';
150 $ophandler['rack']['edit']['cleanRack'] = 'cleanRack';
151 $ophandler['rack']['log']['add'] = 'addObjectlog';
152 $ophandler['rack']['log']['del'] = 'tableHandler';
153 $ophandler['rack']['tags']['saveTags'] = 'saveEntityTags';
154 $ophandler['rack']['files']['addFile'] = 'addFileToEntity';
155 $ophandler['rack']['files']['linkFile'] = 'linkFileToEntity';
156 $ophandler['rack']['files']['unlinkFile'] = 'unlinkFile';
157
158 $page['object']['bypass'] = 'object_id';
159 $page['object']['bypass_type'] = 'uint';
160 $page['object']['bypass_tabs'] = array ('hl_port_id', 'hl_ip');
161 $page['object']['parent'] = 'depot';
162 $tab['object']['default'] = 'View';
163 $tab['object']['edit'] = 'Properties';
164 $tab['object']['log'] = 'Log';
165 $tab['object']['rackspace'] = 'Rackspace';
166 $tab['object']['ports'] = 'Ports';
167 $tab['object']['ip'] = 'IP';
168 $tab['object']['nat4'] = 'NATv4';
169 $tab['object']['liveports'] = 'Live ports';
170 $tab['object']['livecdp'] = 'Live CDP';
171 $tab['object']['livelldp'] = 'Live LLDP';
172 $tab['object']['snmpportfinder'] = 'SNMP sync';
173 $tab['object']['editrspvs'] = 'VS links';
174 $tab['object']['editvslinks'] = 'VSG links';
175 $tab['object']['lvsconfig'] = 'keepalived.conf';
176 $tab['object']['autoports'] = 'AutoPorts';
177 $tab['object']['tags'] = 'Tags';
178 $tab['object']['files'] = 'Files';
179 $tab['object']['ucs'] = 'UCS';
180 $tab['object']['8021qorder'] = '802.1Q order';
181 $tab['object']['8021qports'] = '802.1Q ports';
182 $tab['object']['8021qsync'] = '802.1Q sync';
183 $tab['object']['cacti'] = 'Cacti Graphs';
184 $tab['object']['munin'] = 'Munin Graphs';
185 $tabhandler['object']['default'] = 'renderObject';
186 $tabhandler['object']['edit'] = 'renderEditObjectForm';
187 $tabhandler['object']['log'] = 'renderObjectLogEditor';
188 $tabhandler['object']['rackspace'] = 'renderRackSpaceForObject';
189 $tabhandler['object']['ports'] = 'renderPortsForObject';
190 $tabhandler['object']['ip'] = 'renderIPForObject';
191 $tabhandler['object']['nat4'] = 'renderNATv4ForObject';
192 $tabhandler['object']['liveports'] = 'renderPortsInfo';
193 $tabhandler['object']['livecdp'] = 'renderDiscoveredNeighbors';
194 $tabhandler['object']['livelldp'] = 'renderDiscoveredNeighbors';
195 $tabhandler['object']['snmpportfinder'] = 'renderSNMPPortFinder';
196 $tabhandler['object']['lvsconfig'] = 'renderLVSConfig';
197 $tabhandler['object']['autoports'] = 'renderAutoPortsForm';
198 $tabhandler['object']['tags'] = 'renderEntityTags';
199 $tabhandler['object']['files'] = 'renderFilesForEntity';
200 $tabhandler['object']['editrspvs'] = 'renderSLBEditTab';
201 $tabhandler['object']['editvslinks'] = 'renderTripletForm';
202 $tabhandler['object']['8021qorder'] = 'render8021QOrderForm';
203 $tabhandler['object']['8021qports'] = 'renderObject8021QPorts';
204 $tabhandler['object']['8021qsync'] = 'renderObject8021QSync';
205 $tabhandler['object']['cacti'] = 'renderObjectCactiGraphs';
206 $tabhandler['object']['munin'] = 'renderObjectMuninGraphs';
207 $tabhandler['object']['ucs'] = 'renderEditUCSForm';
208 $trigger['object']['rackspace'] = 'trigger_rackspace';
209 $trigger['object']['ports'] = 'trigger_ports';
210 $trigger['object']['ip'] = 'trigger_ip';
211 $trigger['object']['nat4'] = 'trigger_natv4';
212 $trigger['object']['liveports'] = 'trigger_liveports';
213 $trigger['object']['livecdp'] = 'trigger_LiveCDP';
214 $trigger['object']['livelldp'] = 'trigger_LiveLLDP';
215 $trigger['object']['snmpportfinder'] = 'trigger_snmpportfinder';
216 $trigger['object']['editrspvs'] = 'trigger_isloadbalancer';
217 $trigger['object']['editvslinks'] = 'trigger_isloadbalancer';
218 $trigger['object']['lvsconfig'] = 'trigger_isloadbalancer';
219 $trigger['object']['autoports'] = 'trigger_autoports';
220 $trigger['object']['tags'] = 'trigger_tags';
221 $trigger['object']['8021qorder'] = 'trigger_object_8021qorder';
222 $trigger['object']['8021qports'] = 'trigger_object_8021qports';
223 $trigger['object']['8021qsync'] = 'trigger_object_8021qsync';
224 $trigger['object']['cacti'] = 'triggerCactiGraphs';
225 $trigger['object']['munin'] = 'triggerMuninGraphs';
226 $trigger['object']['ucs'] = 'trigger_ucs';
227 $ophandler['object']['edit']['linkObjects'] = 'linkObjects';
228 $ophandler['object']['edit']['unlinkObjects'] = 'tableHandler';
229 $ophandler['object']['rackspace']['updateObjectAllocation'] = 'updateObjectAllocation';
230 $ophandler['object']['ports']['addPort'] = 'addPortForObject';
231 $ophandler['object']['ports']['editPort'] = 'editPortForObject';
232 $ophandler['object']['ports']['addMultiPorts'] = 'addMultiPorts';
233 $ophandler['object']['ports']['addBulkPorts'] = 'addBulkPorts';
234 $ophandler['object']['ports']['useup'] = 'tableHandler';
235 $ophandler['object']['ports']['delPort'] = 'tableHandler';
236 $ophandler['object']['ports']['deleteAll'] = 'tableHandler';
237 $ophandler['object']['ports']['renameAll'] = 'renameObjectPorts';
238 $ophandler['object']['ports']['unlinkPort'] = 'unlinkPort';
239 $ophandler['object']['ip']['upd'] = 'updIPAllocation';
240 $ophandler['object']['ip']['add'] = 'addIPAllocation';
241 $ophandler['object']['ip']['del'] = 'delIPAllocation';
242 $ophandler['object']['edit']['clearSticker'] = 'clearSticker';
243 $ophandler['object']['edit']['update'] = 'updateObject';
244 $ophandler['object']['edit']['resetObject'] = 'resetObject';
245 $ophandler['object']['log']['add'] = 'addObjectlog';
246 $ophandler['object']['log']['del'] = 'tableHandler';
247 $ophandler['object']['nat4']['addNATv4Rule'] = 'addPortForwarding';
248 $ophandler['object']['nat4']['delNATv4Rule'] = 'delPortForwarding';
249 $ophandler['object']['nat4']['updNATv4Rule'] = 'updPortForwarding';
250 $ophandler['object']['livecdp']['importDPData'] = 'importDPData';
251 $ophandler['object']['livelldp']['importDPData'] = 'importDPData';
252 $ophandler['object']['autoports']['generate'] = 'generateAutoPorts';
253 $ophandler['object']['tags']['saveTags'] = 'saveEntityTags';
254 $ophandler['object']['files']['addFile'] = 'addFileToEntity';
255 $ophandler['object']['files']['linkFile'] = 'linkFileToEntity';
256 $ophandler['object']['files']['unlinkFile'] = 'unlinkFile';
257 $ophandler['object']['editrspvs']['addLB'] = 'addLoadBalancer';
258 $ophandler['object']['editrspvs']['delLB'] = 'tableHandler';
259 $ophandler['object']['editrspvs']['updLB'] = 'tableHandler';
260 $ophandler['object']['editvslinks']['addLink'] = 'createTriplet';
261 $ophandler['object']['editvslinks']['del'] = 'removeTriplet';
262 $ophandler['object']['editvslinks']['updPort'] = 'updateTripletConfig';
263 $ophandler['object']['editvslinks']['updIp'] = 'updateTripletConfig';
264 $ophandler['object']['lvsconfig']['submitSLBConfig'] = 'submitSLBConfig';
265 $ophandler['object']['snmpportfinder']['querySNMPData'] = 'querySNMPData';
266 $ophandler['object']['8021qorder']['add'] = 'add8021QOrder';
267 $ophandler['object']['8021qorder']['del'] = 'del8021QOrder';
268 $ophandler['object']['8021qports']['save8021QConfig'] = 'save8021QPorts';
269 $ophandler['object']['8021qports']['exec8021QRecalc'] = 'process8021QRecalcRequest';
270 $ophandler['object']['8021qsync']['exec8021QPull'] = 'process8021QSyncRequest';
271 $ophandler['object']['8021qsync']['exec8021QPush'] = 'process8021QSyncRequest';
272 $ophandler['object']['8021qsync']['resolve8021QConflicts'] = 'resolve8021QConflicts';
273 $ophandler['object']['8021qsync']['updPortList'] = 'update8021QPortList';
274 $ophandler['object']['cacti']['add'] = 'tableHandler';
275 $ophandler['object']['cacti']['del'] = 'tableHandler';
276 $ophandler['object']['munin']['add'] = 'tableHandler';
277 $ophandler['object']['munin']['del'] = 'tableHandler';
278 $ophandler['object']['ucs']['autoPopulateUCS'] = 'autoPopulateUCS';
279 $ophandler['object']['ucs']['cleanupUCS'] = 'cleanupUCS';
280 $delayauth['object-8021qports-save8021QConfig'] = TRUE;
281 $delayauth['object-8021qorder-add'] = TRUE;
282 $delayauth['object-8021qorder-del'] = TRUE;
283
284 $page['ipv4space']['parent'] = 'index';
285 $tab['ipv4space']['default'] = 'Browse';
286 $tab['ipv4space']['newrange'] = 'Add';
287 $tab['ipv4space']['manage'] = 'Delete';
288 $tabhandler['ipv4space']['default'] = 'renderIPSpace';
289 $tabhandler['ipv4space']['newrange'] = 'renderIPNewNetForm';
290 $tabhandler['ipv4space']['manage'] = 'renderIPSpaceEditor';
291 $ophandler['ipv4space']['newrange']['add'] = 'addIPv4Prefix';
292 $ophandler['ipv4space']['manage']['del'] = 'delIPv4Prefix';
293
294 $page['ipv6space']['parent'] = 'index';
295 $tab['ipv6space']['default'] = 'Browse';
296 $tab['ipv6space']['newrange'] = 'Add';
297 $tab['ipv6space']['manage'] = 'Delete';
298 $tabhandler['ipv6space']['default'] = 'renderIPSpace';
299 $tabhandler['ipv6space']['newrange'] = 'renderIPNewNetForm';
300 $tabhandler['ipv6space']['manage'] = 'renderIPSpaceEditor';
301 $ophandler['ipv6space']['newrange']['add'] = 'addIPv6Prefix';
302 $ophandler['ipv6space']['manage']['del'] = 'delIPv6Prefix';
303
304 $page['ipv4net']['parent'] = 'ipv4space';
305 $page['ipv4net']['bypass'] = 'id';
306 $page['ipv4net']['bypass_type'] = 'uint';
307 $page['ipv4net']['bypass_tabs'] = array ('pg');
308 $tab['ipv4net']['default'] = 'Browse';
309 $tab['ipv4net']['properties'] = 'Properties';
310 $tab['ipv4net']['liveptr'] = 'Live PTR';
311 $tab['ipv4net']['tags'] = 'Tags';
312 $tab['ipv4net']['files'] = 'Files';
313 $tab['ipv4net']['8021q'] = '802.1Q';
314 $tabhandler['ipv4net']['default'] = 'renderIPNetwork';
315 $tabhandler['ipv4net']['properties'] = 'renderIPNetworkProperties';
316 $tabhandler['ipv4net']['liveptr'] = 'renderLivePTR';
317 $tabhandler['ipv4net']['tags'] = 'renderEntityTags';
318 $tabhandler['ipv4net']['files'] = 'renderFilesForEntity';
319 $tabhandler['ipv4net']['8021q'] = 'renderVLANIPLinks';
320 $trigger['ipv4net']['tags'] = 'trigger_tags';
321 $trigger['ipv4net']['8021q'] = 'trigger_ipv4net_vlanconfig';
322 $ophandler['ipv4net']['properties']['editRange'] = 'editIPv4Net';
323 $ophandler['ipv4net']['properties']['del'] = 'delIPv4Prefix';
324 $ophandler['ipv4net']['liveptr']['importPTRData'] = 'importPTRData';
325 $ophandler['ipv4net']['tags']['saveTags'] = 'saveEntityTags';
326 $ophandler['ipv4net']['files']['addFile'] = 'addFileToEntity';
327 $ophandler['ipv4net']['files']['linkFile'] = 'linkFileToEntity';
328 $ophandler['ipv4net']['files']['unlinkFile'] = 'unlinkFile';
329 $ophandler['ipv4net']['8021q']['bind'] = 'bindVLANtoIPv4';
330 $ophandler['ipv4net']['8021q']['unbind'] = 'unbindVLANfromIPv4';
331
332 $page['ipv6net']['parent'] = 'ipv6space';
333 $page['ipv6net']['bypass'] = 'id';
334 $page['ipv6net']['bypass_type'] = 'uint';
335 $tab['ipv6net']['default'] = 'Browse';
336 $tab['ipv6net']['properties'] = 'Properties';
337 $tab['ipv6net']['tags'] = 'Tags';
338 $tab['ipv6net']['files'] = 'Files';
339 $tab['ipv6net']['8021q'] = '802.1Q';
340 $tabhandler['ipv6net']['default'] = 'renderIPNetwork';
341 $tabhandler['ipv6net']['properties'] = 'renderIPNetworkProperties';
342 $tabhandler['ipv6net']['tags'] = 'renderEntityTags';
343 $tabhandler['ipv6net']['files'] = 'renderFilesForEntity';
344 $tabhandler['ipv6net']['8021q'] = 'renderVLANIPLinks';
345 $trigger['ipv6net']['tags'] = 'trigger_tags';
346 $trigger['ipv6net']['8021q'] = 'trigger_ipv6net_vlanconfig';
347 $ophandler['ipv6net']['properties']['editRange'] = 'editIPv6Net';
348 $ophandler['ipv6net']['properties']['del'] = 'delIPv6Prefix';
349 $ophandler['ipv6net']['tags']['saveTags'] = 'saveEntityTags';
350 $ophandler['ipv6net']['files']['addFile'] = 'addFileToEntity';
351 $ophandler['ipv6net']['files']['linkFile'] = 'linkFileToEntity';
352 $ophandler['ipv6net']['files']['unlinkFile'] = 'unlinkFile';
353 $ophandler['ipv6net']['8021q']['bind'] = 'bindVLANtoIPv6';
354 $ophandler['ipv6net']['8021q']['unbind'] = 'unbindVLANfromIPv6';
355
356 //$page['ipaddress']['parent'] = 'ipnet'; - this is commented intentionally, there is a special hack in getPath
357 $page['ipaddress']['bypass'] = 'ip';
358 $page['ipaddress']['bypass_type'] = 'inet';
359 $tab['ipaddress']['default'] = 'Browse';
360 $tab['ipaddress']['properties'] = 'Properties';
361 $tab['ipaddress']['assignment'] = 'Allocation';
362 $tab['ipaddress']['log'] = 'Change log';
363 $tabhandler['ipaddress']['default'] = 'renderIPAddress';
364 $tabhandler['ipaddress']['properties'] = 'renderIPAddressProperties';
365 $tabhandler['ipaddress']['assignment'] = 'renderIPAddressAllocations';
366 $tabhandler['ipaddress']['log'] = 'renderIPAddressLog';
367 $trigger['ipaddress']['log'] = 'triggerIPAddressLog';
368 $ophandler['ipaddress']['properties']['editAddress'] = 'editAddress';
369 $ophandler['ipaddress']['assignment']['del'] = 'delIPAllocation';
370 $ophandler['ipaddress']['assignment']['upd'] = 'updIPAllocation';
371 $ophandler['ipaddress']['assignment']['add'] = 'addIPAllocation';
372
373 $page['ipv4slb']['title'] = 'IP SLB';
374 $page['ipv4slb']['parent'] = 'index';
375 $tab['ipv4slb']['default'] = 'Virtual services';
376 $tab['ipv4slb']['vs'] = 'VS groups';
377 $tab['ipv4slb']['lbs'] = 'Load balancers';
378 $tab['ipv4slb']['rspools'] = 'RS pools';
379 $tab['ipv4slb']['rservers'] = 'Real servers';
380 $tab['ipv4slb']['defconfig'] = 'Default configs';
381 $tab['ipv4slb']['new_vs'] = 'new VS';
382 $tab['ipv4slb']['new_vsg'] = 'new VS group';
383 $tab['ipv4slb']['new_rs'] = 'new RS pool';
384 $tabhandler['ipv4slb']['default'] = 'renderVSList';
385 $tabhandler['ipv4slb']['vs'] = 'renderVSGList';
386 $tabhandler['ipv4slb']['lbs'] = 'renderLBList';
387 $tabhandler['ipv4slb']['rspools'] = 'renderRSPoolList';
388 $tabhandler['ipv4slb']['rservers'] = 'renderRealServerList';
389 $tabhandler['ipv4slb']['defconfig'] = 'renderSLBDefConfig';
390 $tabhandler['ipv4slb']['new_vs'] = 'renderNewVSForm';
391 $tabhandler['ipv4slb']['new_vsg'] = 'renderNewVSGForm';
392 $tabhandler['ipv4slb']['new_rs'] = 'renderNewRSPoolForm';
393 $ophandler['ipv4slb']['new_vs']['add'] = 'addVService';
394 $ophandler['ipv4slb']['new_vsg']['add'] = 'addVSG';
395 $ophandler['ipv4slb']['new_rs']['add'] = 'addRSPool';
396 $ophandler['ipv4slb']['defconfig']['save'] = 'updateSLBDefConfig';
397
398 $page['ipv4vs']['parent'] = 'ipv4slb:default';
399 $page['ipv4vs']['bypass'] = 'vs_id';
400 $page['ipv4vs']['bypass_type'] = 'uint';
401 $tab['ipv4vs']['default'] = 'View';
402 $tab['ipv4vs']['edit'] = 'Edit';
403 $tab['ipv4vs']['editlblist'] = 'VS links';
404 $tab['ipv4vs']['tags'] = 'Tags';
405 $tab['ipv4vs']['files'] = 'Files';
406 $tabhandler['ipv4vs']['default'] = 'renderVirtualService';
407 $tabhandler['ipv4vs']['edit'] = 'renderEditVService';
408 $tabhandler['ipv4vs']['editlblist'] = 'renderSLBEditTab';
409 $tabhandler['ipv4vs']['tags'] = 'renderEntityTags';
410 $tabhandler['ipv4vs']['files'] = 'renderFilesForEntity';
411 $trigger['ipv4vs']['tags'] = 'trigger_tags';
412 $ophandler['ipv4vs']['edit']['updIPv4VS'] = 'updateVService';
413 $ophandler['ipv4vs']['edit']['del'] = 'deleteVService';
414 $ophandler['ipv4vs']['editlblist']['addLB'] = 'addLoadBalancer';
415 $ophandler['ipv4vs']['editlblist']['delLB'] = 'tableHandler';
416 $ophandler['ipv4vs']['editlblist']['updLB'] = 'tableHandler';
417 $ophandler['ipv4vs']['tags']['saveTags'] = 'saveEntityTags';
418 $ophandler['ipv4vs']['files']['addFile'] = 'addFileToEntity';
419 $ophandler['ipv4vs']['files']['linkFile'] = 'linkFileToEntity';
420 $ophandler['ipv4vs']['files']['unlinkFile'] = 'unlinkFile';
421
422 $page['ipvs']['parent'] = 'ipv4slb:vs';
423 $page['ipvs']['bypass'] = 'vs_id';
424 $page['ipvs']['bypass_type'] = 'uint';
425 $tab['ipvs']['default'] = 'View';
426 $tab['ipvs']['edit'] = 'Edit';
427 $tab['ipvs']['editvslinks'] = 'VSG links';
428 $tab['ipvs']['tags'] = 'Tags';
429 $tab['ipvs']['files'] = 'Files';
430 $tab['ipvs']['convert'] = 'Migrate';
431 $tabhandler['ipvs']['default'] = 'renderVS';
432 $tabhandler['ipvs']['edit'] = 'renderEditVS';
433 $tabhandler['ipvs']['editvslinks'] = 'renderTripletForm';
434 $tabhandler['ipvs']['tags'] = 'renderEntityTags';
435 $tabhandler['ipvs']['files'] = 'renderFilesForEntity';
436 $tabhandler['ipvs']['convert'] = 'renderIPVSConvert';
437 $ophandler['ipvs']['edit']['updVS'] = 'updateVS';
438 $ophandler['ipvs']['edit']['del'] = 'deleteVS';
439 $ophandler['ipvs']['edit']['addIP'] = 'addIPToVS';
440 $ophandler['ipvs']['edit']['addPort'] = 'addPortToVS';
441 $ophandler['ipvs']['edit']['updIP'] = 'updateIPInVS';
442 $ophandler['ipvs']['edit']['updPort'] = 'updatePortInVS';
443 $ophandler['ipvs']['edit']['delIP'] = 'removeIPFromVS';
444 $ophandler['ipvs']['edit']['delPort'] = 'removePortFromVS';
445 $ophandler['ipvs']['editvslinks']['addLink'] = 'createTriplet';
446 $ophandler['ipvs']['editvslinks']['del'] = 'removeTriplet';
447 $ophandler['ipvs']['editvslinks']['updPort'] = 'updateTripletConfig';
448 $ophandler['ipvs']['editvslinks']['updIp'] = 'updateTripletConfig';
449 $ophandler['ipvs']['tags']['saveTags'] = 'saveEntityTags';
450 $ophandler['ipvs']['files']['addFile'] = 'addFileToEntity';
451 $ophandler['ipvs']['files']['linkFile'] = 'linkFileToEntity';
452 $ophandler['ipvs']['files']['unlinkFile'] = 'unlinkFile';
453 $ophandler['ipvs']['convert']['convert'] = 'doVSMigrate';
454 $trigger['ipvs']['tags'] = 'trigger_tags';
455 $trigger['ipvs']['convert'] = 'trigger_ipvs_convert';
456
457 $page['ipv4rspool']['parent'] = 'ipv4slb:rspools';
458 $page['ipv4rspool']['bypass'] = 'pool_id';
459 $page['ipv4rspool']['bypass_type'] = 'uint';
460 $tab['ipv4rspool']['default'] = 'View';
461 $tab['ipv4rspool']['edit'] = 'Edit';
462 $tab['ipv4rspool']['editlblist'] = 'VS links';
463 $tab['ipv4rspool']['editvslinks'] = 'VSG links';
464 $tab['ipv4rspool']['editrslist'] = 'RS list';
465 $tab['ipv4rspool']['tags'] = 'Tags';
466 $tab['ipv4rspool']['files'] = 'Files';
467 $trigger['ipv4rspool']['tags'] = 'trigger_tags';
468 $tabhandler['ipv4rspool']['default'] = 'renderRSPool';
469 $tabhandler['ipv4rspool']['edit'] = 'renderEditRSPool';
470 $tabhandler['ipv4rspool']['editrslist'] = 'renderRSPoolServerForm';
471 $tabhandler['ipv4rspool']['editvslinks'] = 'renderTripletForm';
472 $tabhandler['ipv4rspool']['editlblist'] = 'renderSLBEditTab';
473 $tabhandler['ipv4rspool']['tags'] = 'renderEntityTags';
474 $tabhandler['ipv4rspool']['files'] = 'renderFilesForEntity';
475 $ophandler['ipv4rspool']['edit']['updIPv4RSP'] = 'updIPv4RSP';
476 $ophandler['ipv4rspool']['edit']['cloneIPv4RSP'] = 'cloneRSPool';
477 $ophandler['ipv4rspool']['edit']['del'] = 'deleteRSPool';
478 $ophandler['ipv4rspool']['editrslist']['addRS'] = 'addRealServer';
479 $ophandler['ipv4rspool']['editrslist']['delRS'] = 'tableHandler';
480 $ophandler['ipv4rspool']['editrslist']['updRS'] = 'updateRealServer';
481 $ophandler['ipv4rspool']['editrslist']['addMany'] = 'addRealServers';
482 $ophandler['ipv4rspool']['editlblist']['addLB'] = 'addLoadBalancer';
483 $ophandler['ipv4rspool']['editlblist']['delLB'] = 'tableHandler';
484 $ophandler['ipv4rspool']['editlblist']['updLB'] = 'tableHandler';
485 $ophandler['ipv4rspool']['editvslinks']['addLink'] = 'createTriplet';
486 $ophandler['ipv4rspool']['editvslinks']['del'] = 'removeTriplet';
487 $ophandler['ipv4rspool']['editvslinks']['updPort'] = 'updateTripletConfig';
488 $ophandler['ipv4rspool']['editvslinks']['updIp'] = 'updateTripletConfig';
489 $ophandler['ipv4rspool']['tags']['saveTags'] = 'saveEntityTags';
490 $ophandler['ipv4rspool']['files']['addFile'] = 'addFileToEntity';
491 $ophandler['ipv4rspool']['files']['linkFile'] = 'linkFileToEntity';
492 $ophandler['ipv4rspool']['files']['unlinkFile'] = 'unlinkFile';
493
494 $page['search']['handler'] = 'searchHandler';
495 $page['search']['parent'] = 'index';
496 $page['search']['bypass'] = 'q';
497
498 $page['config']['title'] = 'Configuration';
499 $page['config']['handler'] = 'renderConfigMainpage';
500 $page['config']['parent'] = 'index';
501
502 $page['userlist']['title'] = 'Local users';
503 $page['userlist']['parent'] = 'config';
504 $tab['userlist']['default'] = 'View';
505 $tab['userlist']['edit'] = 'Edit';
506 $tabhandler['userlist']['default'] = 'renderUserList';
507 $tabhandler['userlist']['edit'] = 'renderUserListEditor';
508 $ophandler['userlist']['edit']['updateUser'] = 'updateUser';
509 $ophandler['userlist']['edit']['createUser'] = 'createUser';
510
511 $page['user']['parent'] = 'userlist';
512 $page['user']['bypass'] = 'user_id';
513 $page['user']['bypass_type'] = 'uint';
514 $tab['user']['default'] = 'View';
515 $tab['user']['properties'] = 'Properties';
516 $tab['user']['tags'] = 'Tags';
517 $tab['user']['files'] = 'Files';
518 $tabhandler['user']['default'] = 'renderUser';
519 $tabhandler['user']['tags'] = 'renderEntityTags';
520 $tabhandler['user']['files'] = 'renderFilesForEntity';
521 $tabhandler['user']['properties'] = 'renderUserProperties';
522 $ophandler['user']['properties']['edit'] = 'editUserProperties';
523 $ophandler['user']['tags']['saveTags'] = 'saveEntityTags';
524 $ophandler['user']['files']['addFile'] = 'addFileToEntity';
525 $ophandler['user']['files']['linkFile'] = 'linkFileToEntity';
526 $ophandler['user']['files']['unlinkFile'] = 'unlinkFile';
527
528 $page['perms']['title'] = 'Permissions';
529 $page['perms']['parent'] = 'config';
530 $tab['perms']['default'] = 'View';
531 $tab['perms']['edit'] = 'Edit';
532 $tabhandler['perms']['default'] = 'renderRackCodeViewer';
533 $tabhandler['perms']['edit'] = 'renderRackCodeEditor';
534 $ophandler['perms']['edit']['saveRackCode'] = 'saveRackCode';
535
536 $page['parentmap']['title'] = 'Object container compatibility';
537 $page['parentmap']['parent'] = 'config';
538 $tab['parentmap']['default'] = 'View';
539 $tab['parentmap']['edit'] = 'Edit';
540 $tabhandler['parentmap']['default'] = 'renderObjectParentCompatViewer';
541 $tabhandler['parentmap']['edit'] = 'renderObjectParentCompatEditor';
542 $ophandler['parentmap']['edit']['add'] = 'tableHandler';
543 $ophandler['parentmap']['edit']['del'] = 'tableHandler';
544
545 $page['portmap']['title'] = 'Port compatibility';
546 $page['portmap']['parent'] = 'config';
547 $tab['portmap']['default'] = 'View';
548 $tab['portmap']['edit'] = 'Edit';
549 $tabhandler['portmap']['default'] = 'renderOIFCompatViewer';
550 $tabhandler['portmap']['edit'] = 'renderOIFCompatEditor';
551 $ophandler['portmap']['edit']['add'] = 'addOIFCompat';
552 $ophandler['portmap']['edit']['del'] = 'delOIFCompat';
553 $ophandler['portmap']['edit']['addPack'] = 'addOIFCompatPack';
554 $ophandler['portmap']['edit']['delPack'] = 'delOIFCompatPack';
555
556 $page['portifcompat']['title'] = 'Enabled port types';
557 $page['portifcompat']['parent'] = 'config';
558 $tab['portifcompat']['default'] = 'View';
559 $tab['portifcompat']['edit'] = 'Edit';
560 $tabhandler['portifcompat']['default'] = 'renderIIFOIFCompat';
561 $tabhandler['portifcompat']['edit'] = 'renderIIFOIFCompatEditor';
562 $ophandler['portifcompat']['edit']['add'] = 'tableHandler';
563 $ophandler['portifcompat']['edit']['del'] = 'tableHandler';
564 $ophandler['portifcompat']['edit']['addPack'] = 'addIIFOIFCompatPack';
565 $ophandler['portifcompat']['edit']['delPack'] = 'delIIFOIFCompatPack';
566
567 $page['portoifs']['title'] = 'Port outer interfaces';
568 $page['portoifs']['parent'] = 'config';
569 $tab['portoifs']['default'] = 'View';
570 $tab['portoifs']['edit'] = 'Edit';
571 $tabhandler['portoifs']['default'] = 'renderPortOIFViewer';
572 $tabhandler['portoifs']['edit'] = 'renderPortOIFEditor';
573 $ophandler['portoifs']['edit']['add'] = 'tableHandler';
574 $ophandler['portoifs']['edit']['del'] = 'tableHandler';
575 $ophandler['portoifs']['edit']['upd'] = 'tableHandler';
576
577 $page['attrs']['title'] = 'Attributes';
578 $page['attrs']['parent'] = 'config';
579 $tab['attrs']['default'] = 'View';
580 $tab['attrs']['editattrs'] = 'Edit attributes';
581 $tab['attrs']['editmap'] = 'Edit map';
582 $tabhandler['attrs']['default'] = 'renderAttributes';
583 $tabhandler['attrs']['editattrs'] = 'renderEditAttributesForm';
584 $tabhandler['attrs']['editmap'] = 'renderEditAttrMapForm';
585 $ophandler['attrs']['editattrs']['add'] = 'tableHandler';
586 $ophandler['attrs']['editattrs']['del'] = 'tableHandler';
587 $ophandler['attrs']['editattrs']['upd'] = 'tableHandler';
588 $ophandler['attrs']['editmap']['add'] = 'supplementAttrMap';
589 $ophandler['attrs']['editmap']['del'] = 'tableHandler';
590
591 $page['dict']['title'] = 'Dictionary';
592 $page['dict']['parent'] = 'config';
593 $tab['dict']['default'] = 'View';
594 $tab['dict']['chapters'] = 'Manage chapters';
595 $tabhandler['dict']['default'] = 'renderDictionary';
596 $tabhandler['dict']['chapters'] = 'renderChaptersEditor';
597 $ophandler['dict']['chapters']['add'] = 'tableHandler';
598 $ophandler['dict']['chapters']['del'] = 'tableHandler';
599 $ophandler['dict']['chapters']['upd'] = 'tableHandler';
600
601 $page['chapter']['parent'] = 'dict';
602 $page['chapter']['bypass'] = 'chapter_no';
603 $page['chapter']['bypass_type'] = 'uint';
604 $tab['chapter']['default'] = 'View';
605 $tab['chapter']['edit'] = 'Edit';
606 $tabhandler['chapter']['default'] = 'renderChapter';
607 $tabhandler['chapter']['edit'] = 'renderChapterEditor';
608 $ophandler['chapter']['edit']['add'] = 'tableHandler';
609 $ophandler['chapter']['edit']['del'] = 'tableHandler';
610 $ophandler['chapter']['edit']['upd'] = 'tableHandler';
611
612 $page['ui']['title'] = 'User interface';
613 $page['ui']['parent'] = 'config';
614 $tab['ui']['default'] = 'View';
615 $tab['ui']['edit'] = 'Change';
616 $tab['ui']['reset'] = 'Reset';
617 $tabhandler['ui']['default'] = 'renderUIConfig';
618 $tabhandler['ui']['edit'] = 'renderConfigEditor';
619 $tabhandler['ui']['reset'] = 'renderUIResetForm';
620 $ophandler['ui']['edit']['upd'] = 'updateUI';
621 $ophandler['ui']['reset']['go'] = 'resetUIConfig';
622
623 $page['tagtree']['title'] = 'Tag tree';
624 $page['tagtree']['parent'] = 'config';
625 $tab['tagtree']['default'] = 'View';
626 $tab['tagtree']['edit'] = 'Edit';
627 $tabhandler['tagtree']['default'] = 'renderTagTree';
628 $tabhandler['tagtree']['edit'] = 'renderTagTreeEditor';
629 $ophandler['tagtree']['edit']['createTag'] = 'tableHandler';
630 $ophandler['tagtree']['edit']['destroyTag'] = 'tableHandler';
631 $ophandler['tagtree']['edit']['updateTag'] = 'updateTag';
632
633 $page['myaccount']['title'] = 'My account';
634 $page['myaccount']['parent'] = 'config';
635 $tab['myaccount']['default'] = 'Info';
636 $tab['myaccount']['mypassword'] = 'Password change';
637 $tab['myaccount']['interface'] = 'Interface preferences';
638 $tab['myaccount']['qlinks'] = 'Quick links';
639 $trigger['myaccount']['mypassword'] = 'trigger_passwdchange';
640 $tabhandler['myaccount']['default'] = 'renderMyAccount';
641 $tabhandler['myaccount']['mypassword'] = 'renderMyPasswordEditor';
642 $tabhandler['myaccount']['interface'] = 'renderConfigEditor';
643 $tabhandler['myaccount']['qlinks'] = 'renderMyQuickLinks';
644 $ophandler['myaccount']['mypassword']['changeMyPassword'] = 'changeMyPassword';
645 $ophandler['myaccount']['interface']['upd'] = 'saveMyPreferences';
646 $ophandler['myaccount']['interface']['reset'] = 'resetMyPreference';
647 $ophandler['myaccount']['qlinks']['save'] = 'saveQuickLinks';
648
649 $page['cacti']['title'] = 'Cacti';
650 $page['cacti']['parent'] = 'config';
651 $tab['cacti']['default'] = 'View';
652 $tab['cacti']['servers'] = 'Manage servers';
653 $tabhandler['cacti']['default'] = 'renderCactiConfig';
654 $tabhandler['cacti']['servers'] = 'renderCactiServersEditor';
655 $ophandler['cacti']['servers']['add'] = 'tableHandler';
656 $ophandler['cacti']['servers']['del'] = 'tableHandler';
657 $ophandler['cacti']['servers']['upd'] = 'tableHandler';
658
659 $page['munin']['title'] = 'Munin';
660 $page['munin']['parent'] = 'config';
661 $tab['munin']['default'] = 'View';
662 $tab['munin']['servers'] = 'Manage servers';
663 $tabhandler['munin']['default'] = 'renderMuninConfig';
664 $tabhandler['munin']['servers'] = 'renderMuninServersEditor';
665 $ophandler['munin']['servers']['add'] = 'tableHandler';
666 $ophandler['munin']['servers']['del'] = 'tableHandler';
667 $ophandler['munin']['servers']['upd'] = 'tableHandler';
668
669 $page['cableconf']['title'] = 'Patch cables';
670 $page['cableconf']['parent'] = 'config';
671 $tab['cableconf']['default'] = 'View';
672 $tab['cableconf']['connectors'] = 'Edit connectors';
673 $tab['cableconf']['cabletypes'] = 'Edit cable types';
674 $tab['cableconf']['conncompat'] = 'Connector compatibility';
675 $tab['cableconf']['oifcompat'] = 'Outer interface compatibility';
676 $tabhandler['cableconf']['default'] = 'renderPatchCableConfiguration';
677 $tabhandler['cableconf']['connectors'] = 'renderPatchCableConnectorEditor';
678 $tabhandler['cableconf']['cabletypes'] = 'renderPatchCableTypeEditor';
679 $tabhandler['cableconf']['conncompat'] = 'renderPatchCableConnectorCompatEditor';
680 $tabhandler['cableconf']['oifcompat'] = 'renderPatchCableOIFCompatEditor';
681 $ophandler['cableconf']['connectors']['add'] = 'tableHandler';
682 $ophandler['cableconf']['connectors']['del'] = 'tableHandler';
683 $ophandler['cableconf']['connectors']['upd'] = 'tableHandler';
684 $ophandler['cableconf']['cabletypes']['add'] = 'tableHandler';
685 $ophandler['cableconf']['cabletypes']['del'] = 'tableHandler';
686 $ophandler['cableconf']['cabletypes']['upd'] = 'tableHandler';
687 $ophandler['cableconf']['conncompat']['add'] = 'tableHandler';
688 $ophandler['cableconf']['conncompat']['del'] = 'tableHandler';
689 $ophandler['cableconf']['oifcompat']['add'] = 'tableHandler';
690 $ophandler['cableconf']['oifcompat']['del'] = 'tableHandler';
691
692 $page['reports']['title'] = 'Reports';
693 $page['reports']['parent'] = 'index';
694 $tab['reports']['default'] = 'System';
695 $tab['reports']['rackcode'] = 'RackCode';
696 $tab['reports']['ipv4'] = 'IPv4';
697 $tab['reports']['ipv6'] = 'IPv6';
698 $tab['reports']['ports'] = 'Ports';
699 $tab['reports']['8021q'] = '802.1Q';
700 $tab['reports']['warranty'] = 'Expirations';
701 $tab['reports']['integrity'] = 'Data Integrity';
702 $tab['reports']['local'] = 'local'; // this one is set later in init.php
703 $trigger['reports']['local'] = 'trigger_localreports';
704 $tabhandler['reports']['default'] = 'renderSystemReports';
705 $tabhandler['reports']['rackcode'] = 'renderRackCodeReports';
706 $tabhandler['reports']['ipv4'] = 'renderIPv4Reports';
707 $tabhandler['reports']['ipv6'] = 'renderIPv6Reports';
708 $tabhandler['reports']['ports'] = 'renderPortsReport';
709 $tabhandler['reports']['8021q'] = 'render8021QReport';
710 $tabhandler['reports']['warranty'] = 'renderExpirations';
711 $tabhandler['reports']['integrity'] = 'renderDataIntegrityReport';
712 $tabhandler['reports']['local'] = 'renderLocalReports';
713
714 $page['files']['title'] = 'Files';
715 $page['files']['parent'] = 'index';
716 $tab['files']['default'] = 'Browse';
717 $tab['files']['manage'] = 'Manage';
718 $tabhandler['files']['default'] = 'renderFileBrowser';
719 $tabhandler['files']['manage'] = 'renderFileManager';
720 $ophandler['files']['manage']['addFile'] = 'addFileWithoutLink';
721 $ophandler['files']['manage']['unlinkFile'] = 'unlinkFile';
722 $ophandler['files']['manage']['deleteFile'] = 'deleteFile';
723
724 $page['file']['bypass'] = 'file_id';
725 $page['file']['bypass_type'] = 'uint';
726 $page['file']['parent'] = 'files';
727 $tab['file']['default'] = 'View';
728 $tab['file']['edit'] = 'Properties';
729 $tab['file']['tags'] = 'Tags';
730 $tab['file']['editText'] = 'Edit text';
731 $tab['file']['replaceData'] = 'Upload replacement';
732 $tab['file']['download'] = 'Download';
733 $trigger['file']['tags'] = 'trigger_tags';
734 $trigger['file']['editText'] = 'trigger_file_editText';
735 $tabhandler['file']['default'] = 'renderFile';
736 $tabhandler['file']['edit'] = 'renderFileProperties';
737 $tabhandler['file']['tags'] = 'renderEntityTags';
738 $tabhandler['file']['editText'] = 'renderTextEditor';
739 $tabhandler['file']['replaceData'] = 'renderFileReuploader';
740 $tabhandler['file']['download'] = 'renderFileDownloader';
741 $ophandler['file']['edit']['updateFile'] = 'updateFile';
742 $ophandler['file']['tags']['saveTags'] = 'saveEntityTags';
743 $ophandler['file']['editText']['updateFileText'] = 'updateFileText';
744 $ophandler['file']['replaceData']['replaceFile'] = 'replaceFile';
745
746 $page['8021q']['title'] = '802.1Q';
747 $page['8021q']['parent'] = 'index';
748 $tab['8021q']['default'] = 'Status';
749 $tab['8021q']['vdlist'] = 'Manage domains';
750 $tab['8021q']['vstlist'] = 'Manage templates';
751 $tabhandler['8021q']['default'] = 'render8021QStatus';
752 $tabhandler['8021q']['vdlist'] = 'renderVLANDomainListEditor';
753 $tabhandler['8021q']['vstlist'] = 'renderVSTListEditor';
754 $ophandler['8021q']['vdlist']['add'] = 'createVLANDomain';
755 $ophandler['8021q']['vdlist']['del'] = 'tableHandler';
756 $ophandler['8021q']['vdlist']['upd'] = 'updateVLANDomain';
757 $ophandler['8021q']['vstlist']['add'] = 'tableHandler';
758 $ophandler['8021q']['vstlist']['del'] = 'tableHandler';
759 $ophandler['8021q']['vstlist']['upd'] = 'tableHandler';
760
761 $page['vlandomain']['parent'] = '8021q';
762 $page['vlandomain']['bypass'] = 'vdom_id';
763 $page['vlandomain']['bypass_type'] = 'uint';
764 $tab['vlandomain']['default'] = 'View';
765 $tab['vlandomain']['vlanlist'] = 'VLAN list';
766 $tab['vlandomain']['8021qorder'] = '802.1Q orders';
767 $trigger['vlandomain']['8021qorder'] = 'trigger_8021q_configured';
768 $tabhandler['vlandomain']['default'] = 'renderVLANDomain';
769 $tabhandler['vlandomain']['8021qorder'] = 'render8021QOrderForm';
770 $tabhandler['vlandomain']['vlanlist'] = 'renderVLANDomainVLANList';
771 $ophandler['vlandomain']['8021qorder']['add'] = 'add8021QOrder';
772 $ophandler['vlandomain']['8021qorder']['del'] = 'del8021QOrder';
773 $ophandler['vlandomain']['vlanlist']['add'] = 'tableHandler';
774 $ophandler['vlandomain']['vlanlist']['del'] = 'tableHandler';
775 $ophandler['vlandomain']['vlanlist']['upd'] = 'tableHandler';
776 $delayauth['vlandomain-8021qorder-add'] = TRUE;
777 $delayauth['vlandomain-8021qorder-del'] = TRUE;
778
779 $page['vlan']['parent'] = 'vlandomain';
780 $page['vlan']['bypass'] = 'vlan_ck';
781 $page['vlan']['bypass_type'] = 'uint-vlan1';
782 $tab['vlan']['default'] = 'View';
783 $tab['vlan']['edit'] = 'Edit';
784 $tab['vlan']['ipv4'] = 'IPv4';
785 $tab['vlan']['ipv6'] = 'IPv6';
786 $trigger['vlan']['ipv4'] = 'trigger_vlan_ipv4net';
787 $trigger['vlan']['ipv6'] = 'trigger_vlan_ipv6net';
788 $tabhandler['vlan']['default'] = 'renderVLANInfo';
789 $tabhandler['vlan']['edit'] = 'renderEditVlan';
790 $tabhandler['vlan']['ipv4'] = 'renderVLANIPLinks';
791 $tabhandler['vlan']['ipv6'] = 'renderVLANIPLinks';
792 $ophandler['vlan']['edit']['del'] = 'deleteVlan';
793 $ophandler['vlan']['edit']['clear'] = 'clearVlan';
794 $ophandler['vlan']['edit']['upd'] = 'tableHandler';
795 $ophandler['vlan']['ipv4']['bind'] = 'bindVLANtoIPv4';
796 $ophandler['vlan']['ipv4']['unbind'] = 'unbindVLANfromIPv4';
797 $ophandler['vlan']['ipv6']['bind'] = 'bindVLANtoIPv6';
798 $ophandler['vlan']['ipv6']['unbind'] = 'unbindVLANfromIPv6';
799
800 $page['vst']['parent'] = '8021q';
801 $page['vst']['bypass'] = 'vst_id';
802 $page['vst']['bypass_type'] = 'uint';
803 $tab['vst']['default'] = 'View';
804 $tab['vst']['editrules'] = 'Edit';
805 $tab['vst']['8021qorder'] = '802.1Q orders';
806 $tab['vst']['tags'] = 'Tags';
807 $trigger['vst']['editrules'] = 'trigger_vst_editrules';
808 $trigger['vst']['8021qorder'] = 'trigger_8021q_configured';
809 $trigger['vst']['tags'] = 'trigger_tags';
810 $tabhandler['vst']['default'] = 'renderVST';
811 $tabhandler['vst']['editrules'] = 'renderVSTRulesEditor';
812 $tabhandler['vst']['8021qorder'] = 'render8021QOrderForm';
813 $tabhandler['vst']['tags'] = 'renderEntityTags';
814 $ophandler['vst']['editrules']['clone'] = 'cloneVST';
815 $ophandler['vst']['editrules']['upd'] = 'updVSTRule';
816 $ophandler['vst']['8021qorder']['add'] = 'add8021QOrder';
817 $ophandler['vst']['8021qorder']['del'] = 'del8021QOrder';
818 $ophandler['vst']['tags']['saveTags'] = 'saveEntityTags';
819 $delayauth['vst-8021qorder-add'] = TRUE;
820 $delayauth['vst-8021qorder-del'] = TRUE;
821
822 $page['dqueue']['parent'] = '8021q';
823 $page['dqueue']['bypass'] = 'dqcode';
824 $page['dqueue']['bypass_type'] = 'enum/dqcode';
825 $tab['dqueue']['default'] = 'View';
826 $tabhandler['dqueue']['default'] = 'renderDeployQueue';
827
828 $page['objectlog']['title'] = 'Log records';
829 $page['objectlog']['parent'] = 'index';
830 $tab['objectlog']['default'] = 'View';
831 $tabhandler['objectlog']['default'] = 'allObjectLogs';
832
833 $page['virtual']['title'] = 'Virtual Resources';
834 $page['virtual']['parent'] = 'index';
835 $tab['virtual']['default'] = 'Summary';
836 $tabhandler['virtual']['default'] = 'renderVirtualResourcesSummary';
837
838 $page['cables']['title'] = 'Patch cables';
839 $page['cables']['parent'] = 'index';
840 $tab['cables']['default'] = 'View';
841 $tab['cables']['amount'] = 'Consume/replenish';
842 $tab['cables']['heaps'] = 'Configure heaps';
843 $trigger['cables']['amount'] = 'triggerPatchCableHeapsConfigured';
844 $tabhandler['cables']['default'] = 'renderPatchCableHeapSummary';
845 $tabhandler['cables']['amount'] = 'renderPatchCableHeapAmount';
846 $tabhandler['cables']['heaps'] = 'renderPatchCableHeapEditor';
847 $ophandler['cables']['heaps']['add'] = 'tableHandler';
848 $ophandler['cables']['heaps']['del'] = 'tableHandler';
849 $ophandler['cables']['heaps']['upd'] = 'tableHandler';
850 $ophandler['cables']['amount']['dec'] = 'consumePatchCable';
851 $ophandler['cables']['amount']['inc'] = 'replenishPatchCable';
852 $ophandler['cables']['amount']['set'] = 'setPatchCableAmount';
853
854 $ajaxhandler['get-tag-select'] = 'getTagSelectAJAX';
855 $ajaxhandler['get-location-select'] = 'getLocationSelectAJAX';
856 $ajaxhandler['verifyCode'] = 'verifyCodeAJAX';
857 $ajaxhandler['get-port-link'] = 'getPortInfoAJAX';
858 $ajaxhandler['get-port-mac'] = 'getPortInfoAJAX';
859 $ajaxhandler['get-port-portmac'] = 'getPortInfoAJAX';
860 $ajaxhandler['get-port-conf'] = 'getPortInfoAJAX';
861 $ajaxhandler['upd-ip-name'] = 'updateIPNameAJAX';
862 $ajaxhandler['upd-ip-comment'] = 'updateIPCommentAJAX';
863 $ajaxhandler['upd-rack-sort-order'] = 'updateRackSortOrderAJAX';
864 $ajaxhandler['upd-reservation-port'] = 'updatePortRsvAJAX';
865 $ajaxhandler['upd-reservation-cable'] = 'updateCableIdAJAX';
866 $ajaxhandler['net-usage'] = 'getNetUsageAJAX';
867 $ajaxhandler['get-slb-form'] = 'renderSLBFormAJAX';
868 $ajaxhandler['triplet-preview'] = 'getTripletConfigAJAX';
869
870 $popuphandler['objlist'] = 'renderPopupObjectSelector';
871 $popuphandler['portlist'] = 'renderPopupPortSelector';
872 $popuphandler['inet4list'] = 'renderPopupIPv4Selector';
873
874 ?>