r4138 commitResetObject(): use appropriate function for DELETE
[racktables] / inc / navigation.php
CommitLineData
b325120a 1<?php
e673ee24
DO
2/*
3*
4* This file implements generic navigation for RackTables.
5*
6*/
7
83dd1b15
DO
8$page = array();
9$tab = array();
83dd1b15
DO
10$trigger = array();
11$ophandler = array();
81bab70c 12$tabhandler = array();
2f48b72b 13$delayauth = array();
83dd1b15 14
67c5c049
DO
15$indexlayout = array
16(
21ee3351
AA
17 array ('rackspace', 'depot', 'ipv4space', 'ipv6space'),
18 array ('files', 'reports', 'ipv4slb', '8021q'),
9a90adc4 19 array ('config', 'objectlog'),
67c5c049
DO
20);
21
eebf9145 22$page['index']['title'] = 'Main page';
e673ee24
DO
23$page['index']['handler'] = 'renderIndex';
24
eebf9145 25$page['rackspace']['title'] = 'Rackspace';
e673ee24
DO
26$page['rackspace']['parent'] = 'index';
27$tab['rackspace']['default'] = 'Browse';
345fd640 28$tab['rackspace']['edit'] = 'Manage rows';
e673ee24 29$tab['rackspace']['history'] = 'History';
8b6ffe9c 30$tabhandler['rackspace']['default'] = 'renderRackspace';
345fd640 31$tabhandler['rackspace']['edit'] = 'renderRackspaceRowEditor';
8b6ffe9c 32$tabhandler['rackspace']['history'] = 'renderRackspaceHistory';
e38cd1da
DO
33$ophandler['rackspace']['edit']['addRow'] = 'tableHandler';
34$ophandler['rackspace']['edit']['delete'] = 'tableHandler';
35$ophandler['rackspace']['edit']['updateRow'] = 'tableHandler';
e673ee24 36
341fd895
DO
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';
3067f362 45$ophandler['depot']['addmore']['deleteObject'] = 'deleteObject';
e673ee24 46
e673ee24 47$page['row']['bypass'] = 'row_id';
8b6ffe9c 48$page['row']['bypass_type'] = 'uint';
e673ee24
DO
49$page['row']['parent'] = 'rackspace';
50$tab['row']['default'] = 'View';
51$tab['row']['newrack'] = 'Add new rack';
eb6ea26f 52$tab['row']['tagroller'] = 'Tag roller';
8b6ffe9c
DO
53$tabhandler['row']['default'] = 'renderRow';
54$tabhandler['row']['newrack'] = 'renderNewRackForm';
2f32cc32 55$tabhandler['row']['tagroller'] = 'renderTagRollerForRow';
eb6ea26f 56$ophandler['row']['tagroller']['rollTags'] = 'rollTags';
f19c75d6 57$ophandler['row']['newrack']['addRack'] = 'addRack';
e673ee24 58
e673ee24 59$page['rack']['bypass'] = 'rack_id';
8b6ffe9c 60$page['rack']['bypass_type'] = 'uint';
e673ee24
DO
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';
41bd8c87 66$tab['rack']['tags'] = 'Tags';
e1ae3fb4 67$tab['rack']['files'] = 'Files';
8b6ffe9c
DO
68$tabhandler['rack']['default'] = 'renderRackPage';
69$tabhandler['rack']['edit'] = 'renderEditRackForm';
70$tabhandler['rack']['design'] = 'renderRackDesign';
71$tabhandler['rack']['problems'] = 'renderRackProblems';
482c7f35
DO
72$tabhandler['rack']['tags'] = 'renderEntityTags';
73$tabhandler['rack']['files'] = 'renderFilesForEntity';
41bd8c87 74$trigger['rack']['tags'] = 'trigger_tags';
4fbb5a00
DY
75$ophandler['rack']['design']['updateRack'] = 'updateRackDesign';
76$ophandler['rack']['problems']['updateRack'] = 'updateRackProblems';
7056988c 77$ophandler['rack']['edit']['updateRack'] = 'updateRack';
c8187437 78$ophandler['rack']['edit']['deleteRack'] = 'deleteRack';
3355ca56 79$ophandler['rack']['tags']['saveTags'] = 'saveEntityTags';
e1ae3fb4 80$ophandler['rack']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
81$ophandler['rack']['files']['linkFile'] = 'linkFileToEntity';
82$ophandler['rack']['files']['unlinkFile'] = 'unlinkFile';
e673ee24 83
e673ee24 84$page['object']['bypass'] = 'object_id';
3bebaebd 85$page['object']['bypass_type'] = 'uint';
00276508 86$page['object']['bypass_tabs'] = array ('hl_port_id');
341fd895 87$page['object']['parent'] = 'depot';
e673ee24
DO
88$tab['object']['default'] = 'View';
89$tab['object']['edit'] = 'Properties';
9a90adc4 90$tab['object']['log'] = 'Log';
e673ee24
DO
91$tab['object']['rackspace'] = 'Rackspace';
92$tab['object']['ports'] = 'Ports';
72d8ced3 93$tab['object']['ipv4'] = 'IPv4';
21ee3351 94$tab['object']['ipv6'] = 'IPv6';
72d8ced3 95$tab['object']['nat4'] = 'NATv4';
46f92ff7 96$tab['object']['livevlans'] = 'Live VLANs';
65e557dd 97$tab['object']['liveports'] = 'Live ports';
b3247480 98$tab['object']['livecdp'] = 'Live CDP';
b49a479e 99$tab['object']['livelldp'] = 'Live LLDP';
0328f6d6 100$tab['object']['livehndp'] = 'Live HNDP';
4848a7e3 101$tab['object']['snmpportfinder'] = 'SNMP sync';
0dfaea8e 102$tab['object']['editrspvs'] = 'RS pools';
a0527aef 103$tab['object']['lvsconfig'] = 'keepalived.conf';
118e4c38 104$tab['object']['autoports'] = 'AutoPorts';
2fb24351 105$tab['object']['tags'] = 'Tags';
e1ae3fb4 106$tab['object']['files'] = 'Files';
38cd7704 107$tab['object']['8021qorder'] = '802.1Q order';
25930440 108$tab['object']['8021qports'] = '802.1Q ports';
ca9e1c9d 109$tab['object']['8021qsync'] = '802.1Q sync';
e45a78d7
DO
110$tabhandler['object']['default'] = 'renderRackObject';
111$tabhandler['object']['edit'] = 'renderEditObjectForm';
9a90adc4 112$tabhandler['object']['log'] = 'renderObjectLogEditor';
e45a78d7
DO
113$tabhandler['object']['rackspace'] = 'renderRackSpaceForObject';
114$tabhandler['object']['ports'] = 'renderPortsForObject';
72d8ced3 115$tabhandler['object']['ipv4'] = 'renderIPv4ForObject';
21ee3351 116$tabhandler['object']['ipv6'] = 'renderIPv6ForObject';
72d8ced3 117$tabhandler['object']['nat4'] = 'renderNATv4ForObject';
46f92ff7 118$tabhandler['object']['livevlans'] = 'renderVLANMembership';
65e557dd 119$tabhandler['object']['liveports'] = 'renderPortsInfo';
5b5b1cab
DO
120$tabhandler['object']['livecdp'] = 'renderDiscoveredNeighbors';
121$tabhandler['object']['livelldp'] = 'renderDiscoveredNeighbors';
0328f6d6 122$tabhandler['object']['livehndp'] = 'renderDiscoveredNeighbors';
e45a78d7 123$tabhandler['object']['snmpportfinder'] = 'renderSNMPPortFinder';
3ee1252b 124$tabhandler['object']['lvsconfig'] = 'renderLVSConfig';
118e4c38 125$tabhandler['object']['autoports'] = 'renderAutoPortsForm';
482c7f35
DO
126$tabhandler['object']['tags'] = 'renderEntityTags';
127$tabhandler['object']['files'] = 'renderFilesForEntity';
0dfaea8e 128$tabhandler['object']['editrspvs'] = 'renderObjectSLB';
38cd7704 129$tabhandler['object']['8021qorder'] = 'render8021QOrderForm';
4bb604ac 130$tabhandler['object']['8021qports'] = 'renderObject8021QPorts';
2e607238 131$tabhandler['object']['8021qsync'] = 'renderObject8021QSync';
c0a322d1 132$trigger['object']['rackspace'] = 'trigger_rackspace';
72d8ced3 133$trigger['object']['ipv4'] = 'trigger_ipv4';
21ee3351 134$trigger['object']['ipv6'] = 'trigger_ipv6';
72d8ced3 135$trigger['object']['nat4'] = 'trigger_natv4';
46f92ff7 136$trigger['object']['livevlans'] = 'trigger_livevlans';
65e557dd 137$trigger['object']['liveports'] = 'trigger_liveports';
e9d357e1 138$trigger['object']['livecdp'] = 'trigger_LiveCDP';
b49a479e 139$trigger['object']['livelldp'] = 'trigger_LiveLLDP';
0328f6d6 140$trigger['object']['livehndp'] = 'trigger_LiveHNDP';
9c67f713 141$trigger['object']['snmpportfinder'] = 'trigger_snmpportfinder';
a0527aef
DO
142$trigger['object']['editrspvs'] = 'trigger_isloadbalancer';
143$trigger['object']['lvsconfig'] = 'trigger_isloadbalancer';
118e4c38 144$trigger['object']['autoports'] = 'trigger_autoports';
91dbb8a3 145$trigger['object']['tags'] = 'trigger_tags';
38cd7704 146$trigger['object']['8021qorder'] = 'trigger_object_8021qorder';
be28b696
DO
147$trigger['object']['8021qports'] = 'trigger_object_8021qports';
148$trigger['object']['8021qsync'] = 'trigger_object_8021qsync';
4fbb5a00 149$ophandler['object']['rackspace']['updateObjectAllocation'] = 'updateObjectAllocation';
e673ee24 150$ophandler['object']['ports']['addPort'] = 'addPortForObject';
e673ee24
DO
151$ophandler['object']['ports']['editPort'] = 'editPortForObject';
152$ophandler['object']['ports']['linkPort'] = 'linkPortForObject';
e673ee24 153$ophandler['object']['ports']['addMultiPorts'] = 'addMultiPorts';
a1fc539a 154$ophandler['object']['ports']['addBulkPorts'] = 'addBulkPorts';
e673ee24 155$ophandler['object']['ports']['useup'] = 'useupPort';
e38cd1da
DO
156$ophandler['object']['ports']['delPort'] = 'tableHandler';
157$ophandler['object']['ports']['unlinkPort'] = 'tableHandler';
72d8ced3
DO
158$ophandler['object']['ipv4']['updIPv4Allocation'] = 'updIPv4Allocation';
159$ophandler['object']['ipv4']['addIPv4Allocation'] = 'addIPv4Allocation';
160$ophandler['object']['ipv4']['delIPv4Allocation'] = 'delIPv4Allocation';
21ee3351
AA
161$ophandler['object']['ipv6']['updIPv6Allocation'] = 'updIPv6Allocation';
162$ophandler['object']['ipv6']['addIPv6Allocation'] = 'addIPv6Allocation';
163$ophandler['object']['ipv6']['delIPv6Allocation'] = 'delIPv6Allocation';
22bb04da 164$ophandler['object']['edit']['clearSticker'] = 'clearSticker';
22bb04da 165$ophandler['object']['edit']['update'] = 'updateObject';
abd1e9ac 166$ophandler['object']['edit']['resetObject'] = 'resetObject';
9a90adc4 167$ophandler['object']['log']['add'] = 'addObjectlog';
e38cd1da 168$ophandler['object']['log']['del'] = 'tableHandler';
72d8ced3
DO
169$ophandler['object']['nat4']['addNATv4Rule'] = 'addPortForwarding';
170$ophandler['object']['nat4']['delNATv4Rule'] = 'delPortForwarding';
171$ophandler['object']['nat4']['updNATv4Rule'] = 'updPortForwarding';
46f92ff7 172$ophandler['object']['livevlans']['setPortVLAN'] = 'setPortVLAN';
5b5b1cab
DO
173$ophandler['object']['livecdp']['importDPData'] = 'importDPData';
174$ophandler['object']['livelldp']['importDPData'] = 'importDPData';
f3f0161f 175$ophandler['object']['autoports']['generate'] = 'generateAutoPorts';
3355ca56 176$ophandler['object']['tags']['saveTags'] = 'saveEntityTags';
e1ae3fb4 177$ophandler['object']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
178$ophandler['object']['files']['linkFile'] = 'linkFileToEntity';
179$ophandler['object']['files']['unlinkFile'] = 'unlinkFile';
0dfaea8e 180$ophandler['object']['editrspvs']['addLB'] = 'addLoadBalancer';
e38cd1da 181$ophandler['object']['editrspvs']['delLB'] = 'tableHandler';
cc8e2c61 182$ophandler['object']['editrspvs']['updLB'] = 'tableHandler';
2987fc1f 183$ophandler['object']['lvsconfig']['submitSLBConfig'] = 'submitSLBConfig';
7056988c 184$ophandler['object']['snmpportfinder']['querySNMPData'] = 'querySNMPData';
38cd7704
DO
185$ophandler['object']['8021qorder']['add'] = 'add8021QOrder';
186$ophandler['object']['8021qorder']['del'] = 'del8021QOrder';
cb843760 187$ophandler['object']['8021qports']['save8021QConfig'] = 'save8021QPorts';
f9428bc6 188$ophandler['object']['8021qports']['exec8021QRecalc'] = 'process8021QRecalcRequest';
2e84a05b
DO
189$ophandler['object']['8021qsync']['exec8021QPull'] = 'process8021QSyncRequest';
190$ophandler['object']['8021qsync']['exec8021QPush'] = 'process8021QSyncRequest';
191$ophandler['object']['8021qsync']['resolve8021QConflicts'] = 'resolve8021QConflicts';
192$delayauth['object']['8021qports']['save8021QConfig'] = TRUE;
46f92ff7 193$delayauth['object']['livevlans']['setPortVLAN'] = TRUE;
e673ee24 194
e673ee24
DO
195$page['ipv4space']['parent'] = 'index';
196$tab['ipv4space']['default'] = 'Browse';
0bcdc163 197$tab['ipv4space']['newrange'] = 'Manage';
04d619d0
DO
198$tabhandler['ipv4space']['default'] = 'renderIPv4Space';
199$tabhandler['ipv4space']['newrange'] = 'renderIPv4SpaceEditor';
42023f03
DO
200$ophandler['ipv4space']['newrange']['addIPv4Prefix'] = 'addIPv4Prefix';
201$ophandler['ipv4space']['newrange']['delIPv4Prefix'] = 'delIPv4Prefix';
e673ee24 202
21ee3351
AA
203$page['ipv6space']['parent'] = 'index';
204$tab['ipv6space']['default'] = 'Browse';
205$tab['ipv6space']['newrange'] = 'Manage';
206$tabhandler['ipv6space']['default'] = 'renderIPv6Space';
207$tabhandler['ipv6space']['newrange'] = 'renderIPv6SpaceEditor';
208$ophandler['ipv6space']['newrange']['addIPv6Prefix'] = 'addIPv6Prefix';
209$ophandler['ipv6space']['newrange']['delIPv6Prefix'] = 'delIPv6Prefix';
210
e1ae3fb4
AD
211$page['ipv4net']['parent'] = 'ipv4space';
212$page['ipv4net']['bypass'] = 'id';
213$page['ipv4net']['bypass_type'] = 'uint';
e1ae3fb4
AD
214$tab['ipv4net']['default'] = 'Browse';
215$tab['ipv4net']['properties'] = 'Properties';
216$tab['ipv4net']['liveptr'] = 'Live PTR';
217$tab['ipv4net']['tags'] = 'Tags';
218$tab['ipv4net']['files'] = 'Files';
a5f9d1ca 219$tab['ipv4net']['8021q'] = '802.1Q';
e1ae3fb4 220$tabhandler['ipv4net']['default'] = 'renderIPv4Network';
21ee3351 221$tabhandler['ipv4net']['properties'] = 'renderIPNetworkProperties';
e1ae3fb4 222$tabhandler['ipv4net']['liveptr'] = 'renderLivePTR';
482c7f35
DO
223$tabhandler['ipv4net']['tags'] = 'renderEntityTags';
224$tabhandler['ipv4net']['files'] = 'renderFilesForEntity';
21ee3351 225$tabhandler['ipv4net']['8021q'] = 'renderVLANIPLinks';
e1ae3fb4 226$trigger['ipv4net']['tags'] = 'trigger_tags';
a5f9d1ca 227$trigger['ipv4net']['8021q'] = 'trigger_ipv4net_vlanconfig';
e38cd1da 228$ophandler['ipv4net']['properties']['editRange'] = 'tableHandler';
e1ae3fb4
AD
229$ophandler['ipv4net']['liveptr']['importPTRData'] = 'importPTRData';
230$ophandler['ipv4net']['tags']['saveTags'] = 'saveEntityTags';
231$ophandler['ipv4net']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
232$ophandler['ipv4net']['files']['linkFile'] = 'linkFileToEntity';
233$ophandler['ipv4net']['files']['unlinkFile'] = 'unlinkFile';
a5f9d1ca
DO
234$ophandler['ipv4net']['8021q']['bind'] = 'bindVLANtoIPv4';
235$ophandler['ipv4net']['8021q']['unbind'] = 'unbindVLANfromIPv4';
e673ee24 236
21ee3351
AA
237$page['ipv6net']['parent'] = 'ipv6space';
238$page['ipv6net']['bypass'] = 'id';
239$page['ipv6net']['bypass_type'] = 'uint';
240$tab['ipv6net']['default'] = 'Browse';
241$tab['ipv6net']['properties'] = 'Properties';
242$tab['ipv6net']['tags'] = 'Tags';
243$tab['ipv6net']['files'] = 'Files';
244$tab['ipv6net']['8021q'] = '802.1Q';
245$tabhandler['ipv6net']['default'] = 'renderIPv6Network';
246$tabhandler['ipv6net']['properties'] = 'renderIPNetworkProperties';
247$tabhandler['ipv6net']['tags'] = 'renderEntityTags';
248$tabhandler['ipv6net']['files'] = 'renderFilesForEntity';
249$tabhandler['ipv6net']['8021q'] = 'renderVLANIPLinks';
250$trigger['ipv6net']['tags'] = 'trigger_tags';
251$trigger['ipv6net']['8021q'] = 'trigger_ipv6net_vlanconfig';
e38cd1da 252$ophandler['ipv6net']['properties']['editRange'] = 'tableHandler';
21ee3351
AA
253$ophandler['ipv6net']['tags']['saveTags'] = 'saveEntityTags';
254$ophandler['ipv6net']['files']['addFile'] = 'addFileToEntity';
255$ophandler['ipv6net']['files']['linkFile'] = 'linkFileToEntity';
256$ophandler['ipv6net']['files']['unlinkFile'] = 'unlinkFile';
257$ophandler['ipv6net']['8021q']['bind'] = 'bindVLANtoIPv6';
258$ophandler['ipv6net']['8021q']['unbind'] = 'unbindVLANfromIPv6';
259
e1ae3fb4 260$page['ipaddress']['parent'] = 'ipv4net';
e673ee24 261$page['ipaddress']['bypass'] = 'ip';
1fbc9fd6 262$page['ipaddress']['bypass_type'] = 'inet4';
e673ee24
DO
263$tab['ipaddress']['default'] = 'Browse';
264$tab['ipaddress']['properties'] = 'Properties';
265$tab['ipaddress']['assignment'] = 'Allocation';
21ee3351
AA
266$tabhandler['ipaddress']['default'] = 'renderIPAddress';
267$tabhandler['ipaddress']['properties'] = 'renderIPAddressProperties';
268$tabhandler['ipaddress']['assignment'] = 'renderIPAddressAllocations';
e673ee24 269$ophandler['ipaddress']['properties']['editAddress'] = 'editAddress';
b4c1ef87
DO
270$ophandler['ipaddress']['assignment']['delIPv4Allocation'] = 'delIPv4Allocation';
271$ophandler['ipaddress']['assignment']['updIPv4Allocation'] = 'updIPv4Allocation';
272$ophandler['ipaddress']['assignment']['addIPv4Allocation'] = 'addIPv4Allocation';
e673ee24 273
21ee3351
AA
274$page['ipv6address']['parent'] = 'ipv6net';
275$page['ipv6address']['bypass'] = 'ip';
276$page['ipv6address']['bypass_type'] = 'string';
277$tab['ipv6address']['default'] = 'Browse';
278$tab['ipv6address']['properties'] = 'Properties';
279$tab['ipv6address']['assignment'] = 'Allocation';
280$tabhandler['ipv6address']['default'] = 'renderIPAddress';
281$tabhandler['ipv6address']['properties'] = 'renderIPAddressProperties';
282$tabhandler['ipv6address']['assignment'] = 'renderIPAddressAllocations';
283$ophandler['ipv6address']['properties']['editAddress'] = 'editv6Address';
284$ophandler['ipv6address']['assignment']['delIPv6Allocation'] = 'delIPv6Allocation';
285$ophandler['ipv6address']['assignment']['updIPv6Allocation'] = 'updIPv6Allocation';
286$ophandler['ipv6address']['assignment']['addIPv6Allocation'] = 'addIPv6Allocation';
287
f973f491
DO
288$page['ipv4slb']['title'] = 'IPv4 SLB';
289$page['ipv4slb']['parent'] = 'index';
1f54e1ba
DO
290$tab['ipv4slb']['default'] = 'Browse';
291$tab['ipv4slb']['defconfig'] = 'Default configs';
fa5b2764 292$tabhandler['ipv4slb']['default'] = 'renderIPv4SLB';
1f54e1ba
DO
293$tabhandler['ipv4slb']['defconfig'] = 'renderSLBDefConfig';
294$ophandler['ipv4slb']['defconfig']['save'] = 'updateSLBDefConfig';
f973f491 295
a239e016
DO
296$page['ipv4vslist']['title'] = 'Virtual services';
297$page['ipv4vslist']['parent'] = 'ipv4slb';
298$tab['ipv4vslist']['default'] = 'View';
299$tab['ipv4vslist']['edit'] = 'Edit';
300$tabhandler['ipv4vslist']['default'] = 'renderVSList';
301$tabhandler['ipv4vslist']['edit'] = 'renderVSListEditForm';
302$ophandler['ipv4vslist']['edit']['add'] = 'addVService';
303$ophandler['ipv4vslist']['edit']['del'] = 'deleteVService';
b3c50e6c 304
2bb798a3 305$page['ipv4vs']['parent'] = 'ipv4vslist';
49fb2686 306$page['ipv4vs']['bypass'] = 'vs_id';
2bb798a3 307$page['ipv4vs']['bypass_type'] = 'uint';
2bb798a3 308$tab['ipv4vs']['default'] = 'View';
c9890988 309$tab['ipv4vs']['edit'] = 'Edit';
49fb2686 310$tab['ipv4vs']['editlblist'] = 'Load balancers';
2bb798a3 311$tab['ipv4vs']['tags'] = 'Tags';
e1ae3fb4 312$tab['ipv4vs']['files'] = 'Files';
2bb798a3
DO
313$tabhandler['ipv4vs']['default'] = 'renderVirtualService';
314$tabhandler['ipv4vs']['edit'] = 'renderEditVService';
49fb2686 315$tabhandler['ipv4vs']['editlblist'] = 'renderVServiceLBForm';
482c7f35
DO
316$tabhandler['ipv4vs']['tags'] = 'renderEntityTags';
317$tabhandler['ipv4vs']['files'] = 'renderFilesForEntity';
e1ae3fb4 318$trigger['ipv4vs']['tags'] = 'trigger_tags';
e02e1941 319$ophandler['ipv4vs']['edit']['updIPv4VS'] = 'updateVService';
49fb2686 320$ophandler['ipv4vs']['editlblist']['addLB'] = 'addLoadBalancer';
e38cd1da 321$ophandler['ipv4vs']['editlblist']['delLB'] = 'tableHandler';
cc8e2c61 322$ophandler['ipv4vs']['editlblist']['updLB'] = 'tableHandler';
e1ae3fb4
AD
323$ophandler['ipv4vs']['tags']['saveTags'] = 'saveEntityTags';
324$ophandler['ipv4vs']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
325$ophandler['ipv4vs']['files']['linkFile'] = 'linkFileToEntity';
326$ophandler['ipv4vs']['files']['unlinkFile'] = 'unlinkFile';
c9b4588f 327
ee437dab
DO
328$page['ipv4rsplist']['title'] = 'RS pools';
329$page['ipv4rsplist']['parent'] = 'ipv4slb';
330$tab['ipv4rsplist']['default'] = 'View';
331$tab['ipv4rsplist']['edit'] = 'Edit';
332$tabhandler['ipv4rsplist']['default'] = 'renderRSPoolList';
333$tabhandler['ipv4rsplist']['edit'] = 'editRSPools';
334$ophandler['ipv4rsplist']['edit']['add'] = 'addRSPool';
335$ophandler['ipv4rsplist']['edit']['del'] = 'deleteRSPool';
e1ae3fb4 336
e1ae3fb4
AD
337$page['ipv4rspool']['parent'] = 'ipv4rsplist';
338$page['ipv4rspool']['bypass'] = 'pool_id';
339$page['ipv4rspool']['bypass_type'] = 'uint';
e1ae3fb4
AD
340$tab['ipv4rspool']['default'] = 'View';
341$tab['ipv4rspool']['edit'] = 'Edit';
4a04bcb1 342$tab['ipv4rspool']['editlblist'] = 'Load balancers';
e1ae3fb4
AD
343$tab['ipv4rspool']['editrslist'] = 'RS list';
344$tab['ipv4rspool']['rsinservice'] = 'RS in service';
345$tab['ipv4rspool']['tags'] = 'Tags';
346$tab['ipv4rspool']['files'] = 'Files';
347$trigger['ipv4rspool']['rsinservice'] = 'trigger_poolrscount';
348$trigger['ipv4rspool']['tags'] = 'trigger_tags';
349$tabhandler['ipv4rspool']['default'] = 'renderRSPool';
350$tabhandler['ipv4rspool']['edit'] = 'renderEditRSPool';
351$tabhandler['ipv4rspool']['editrslist'] = 'renderRSPoolServerForm';
352$tabhandler['ipv4rspool']['editlblist'] = 'renderRSPoolLBForm';
353$tabhandler['ipv4rspool']['rsinservice'] = 'renderRSPoolRSInServiceForm';
482c7f35
DO
354$tabhandler['ipv4rspool']['tags'] = 'renderEntityTags';
355$tabhandler['ipv4rspool']['files'] = 'renderFilesForEntity';
cc8e2c61 356$ophandler['ipv4rspool']['edit']['updIPv4RSP'] = 'tableHandler';
e1ae3fb4 357$ophandler['ipv4rspool']['editrslist']['addRS'] = 'addRealServer';
e38cd1da 358$ophandler['ipv4rspool']['editrslist']['delRS'] = 'tableHandler';
e1ae3fb4
AD
359$ophandler['ipv4rspool']['editrslist']['updRS'] = 'updateRealServer';
360$ophandler['ipv4rspool']['editrslist']['addMany'] = 'addRealServers';
361$ophandler['ipv4rspool']['editlblist']['addLB'] = 'addLoadBalancer';
e38cd1da 362$ophandler['ipv4rspool']['editlblist']['delLB'] = 'tableHandler';
cc8e2c61 363$ophandler['ipv4rspool']['editlblist']['updLB'] = 'tableHandler';
e1ae3fb4
AD
364$ophandler['ipv4rspool']['rsinservice']['upd'] = 'updateRSInService';
365$ophandler['ipv4rspool']['tags']['saveTags'] = 'saveEntityTags';
366$ophandler['ipv4rspool']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
367$ophandler['ipv4rspool']['files']['linkFile'] = 'linkFileToEntity';
368$ophandler['ipv4rspool']['files']['unlinkFile'] = 'unlinkFile';
71b8bda1 369
8253d9f0 370$page['rservers']['title'] = 'Real servers';
f973f491 371$page['rservers']['parent'] = 'ipv4slb';
8253d9f0 372$page['rservers']['handler'] = 'renderRealServerList';
b3c50e6c 373
4b0932b6 374$page['lbs']['title'] = 'Load balancers';
f973f491 375$page['lbs']['parent'] = 'ipv4slb';
4b0932b6 376$page['lbs']['handler'] = 'renderLBList';
b3c50e6c 377
09ce7c20 378$page['search']['handler'] = 'searchHandler';
e673ee24
DO
379$page['search']['parent'] = 'index';
380$page['search']['bypass'] = 'q';
381
eebf9145 382$page['config']['title'] = 'Configuration';
3aeb15f3 383$page['config']['handler'] = 'renderConfigMainpage';
e673ee24
DO
384$page['config']['parent'] = 'index';
385
9133d2c5 386$page['userlist']['title'] = 'Local users';
82627005
DO
387$page['userlist']['parent'] = 'config';
388$tab['userlist']['default'] = 'View';
389$tab['userlist']['edit'] = 'Edit';
390$tabhandler['userlist']['default'] = 'renderUserList';
391$tabhandler['userlist']['edit'] = 'renderUserListEditor';
392$ophandler['userlist']['edit']['updateUser'] = 'updateUser';
393$ophandler['userlist']['edit']['createUser'] = 'createUser';
82627005 394
82627005
DO
395$page['user']['parent'] = 'userlist';
396$page['user']['bypass'] = 'user_id';
397$page['user']['bypass_type'] = 'uint';
82627005 398$tab['user']['default'] = 'View';
82627005 399$tab['user']['tags'] = 'Tags';
e1ae3fb4 400$tab['user']['files'] = 'Files';
82627005 401$tabhandler['user']['default'] = 'renderUser';
482c7f35
DO
402$tabhandler['user']['tags'] = 'renderEntityTags';
403$tabhandler['user']['files'] = 'renderFilesForEntity';
3355ca56 404$ophandler['user']['tags']['saveTags'] = 'saveEntityTags';
e1ae3fb4 405$ophandler['user']['files']['addFile'] = 'addFileToEntity';
e1ae3fb4
AD
406$ophandler['user']['files']['linkFile'] = 'linkFileToEntity';
407$ophandler['user']['files']['unlinkFile'] = 'unlinkFile';
e673ee24 408
eebf9145 409$page['perms']['title'] = 'Permissions';
e673ee24
DO
410$page['perms']['parent'] = 'config';
411$tab['perms']['default'] = 'View';
82627005
DO
412$tab['perms']['edit'] = 'Edit';
413$tabhandler['perms']['default'] = 'renderRackCodeViewer';
414$tabhandler['perms']['edit'] = 'renderRackCodeEditor';
415$ophandler['perms']['edit']['saveRackCode'] = 'saveRackCode';
e673ee24 416
2dfa1b73 417$page['portmap']['title'] = 'Port compatibility';
e673ee24
DO
418$page['portmap']['parent'] = 'config';
419$tab['portmap']['default'] = 'View';
b07f66ef 420$tab['portmap']['edit'] = 'Edit';
27ec21b2
DO
421$tabhandler['portmap']['default'] = 'renderPortOIFCompatViewer';
422$tabhandler['portmap']['edit'] = 'renderPortOIFCompatEditor';
e38cd1da
DO
423$ophandler['portmap']['edit']['add'] = 'tableHandler';
424$ophandler['portmap']['edit']['del'] = 'tableHandler';
e673ee24 425
2dfa1b73
DO
426$page['portifcompat']['title'] = 'Enabled port types';
427$page['portifcompat']['parent'] = 'config';
428$tab['portifcompat']['default'] = 'View';
429$tab['portifcompat']['edit'] = 'Edit';
430$tabhandler['portifcompat']['default'] = 'renderPortIFCompat';
431$tabhandler['portifcompat']['edit'] = 'renderPortIFCompatEditor';
432$ophandler['portifcompat']['edit']['add'] = 'addPortInterfaceCompat';
e38cd1da 433$ophandler['portifcompat']['edit']['del'] = 'tableHandler';
3d9ac3d4
DO
434$ophandler['portifcompat']['edit']['addPack'] = 'addPortInterfaceCompatPack';
435$ophandler['portifcompat']['edit']['delPack'] = 'delPortInterfaceCompatPack';
2dfa1b73 436
eebf9145 437$page['attrs']['title'] = 'Attributes';
e673ee24
DO
438$page['attrs']['parent'] = 'config';
439$tab['attrs']['default'] = 'View';
440$tab['attrs']['editattrs'] = 'Edit attributes';
441$tab['attrs']['editmap'] = 'Edit map';
8b6ffe9c
DO
442$tabhandler['attrs']['default'] = 'renderAttributes';
443$tabhandler['attrs']['editattrs'] = 'renderEditAttributesForm';
444$tabhandler['attrs']['editmap'] = 'renderEditAttrMapForm';
e38cd1da
DO
445$ophandler['attrs']['editattrs']['add'] = 'tableHandler';
446$ophandler['attrs']['editattrs']['del'] = 'tableHandler';
68a0bd8a 447$ophandler['attrs']['editattrs']['upd'] = 'tableHandler';
e673ee24 448$ophandler['attrs']['editmap']['add'] = 'supplementAttrMap';
e38cd1da 449$ophandler['attrs']['editmap']['del'] = 'tableHandler';
e673ee24 450
eebf9145 451$page['dict']['title'] = 'Dictionary';
e673ee24
DO
452$page['dict']['parent'] = 'config';
453$tab['dict']['default'] = 'View';
e673ee24 454$tab['dict']['chapters'] = 'Manage chapters';
8b6ffe9c 455$tabhandler['dict']['default'] = 'renderDictionary';
8b6ffe9c 456$tabhandler['dict']['chapters'] = 'renderChaptersEditor';
e38cd1da 457$ophandler['dict']['chapters']['add'] = 'tableHandler';
e673ee24
DO
458$ophandler['dict']['chapters']['del'] = 'delChapter';
459$ophandler['dict']['chapters']['upd'] = 'updateChapter';
e673ee24 460
4034ab9e
DO
461$page['chapter']['parent'] = 'dict';
462$page['chapter']['bypass'] = 'chapter_no';
463$page['chapter']['bypass_type'] = 'uint';
464$tab['chapter']['default'] = 'View';
465$tab['chapter']['edit'] = 'Edit';
466$tabhandler['chapter']['default'] = 'renderChapter';
467$tabhandler['chapter']['edit'] = 'renderChapterEditor';
e38cd1da
DO
468$ophandler['chapter']['edit']['add'] = 'tableHandler';
469$ophandler['chapter']['edit']['del'] = 'tableHandler';
4034ab9e 470$ophandler['chapter']['edit']['upd'] = 'updateDictionary';
4034ab9e 471
eebf9145 472$page['ui']['title'] = 'User interface';
e673ee24 473$page['ui']['parent'] = 'config';
0a1b1268 474$tab['ui']['default'] = 'View';
4fe32e78 475$tab['ui']['edit'] = 'Change';
b07f617c 476$tab['ui']['reset'] = 'Reset';
8b6ffe9c
DO
477$tabhandler['ui']['default'] = 'renderUIConfig';
478$tabhandler['ui']['edit'] = 'renderUIConfigEditForm';
479$tabhandler['ui']['reset'] = 'renderUIResetForm';
4fe32e78 480$ophandler['ui']['edit']['upd'] = 'updateUI';
b07f617c 481$ophandler['ui']['reset']['go'] = 'resetUIConfig';
e673ee24 482
931bf334
DO
483$page['tagtree']['title'] = 'Tag tree';
484$page['tagtree']['parent'] = 'config';
485$tab['tagtree']['default'] = 'View';
49fb1027 486$tab['tagtree']['edit'] = 'Edit';
931bf334
DO
487$tabhandler['tagtree']['default'] = 'renderTagTree';
488$tabhandler['tagtree']['edit'] = 'renderTagTreeEditor';
e38cd1da
DO
489$ophandler['tagtree']['edit']['createTag'] = 'tableHandler';
490$ophandler['tagtree']['edit']['destroyTag'] = 'tableHandler';
c59a986c 491$ophandler['tagtree']['edit']['updateTag'] = 'tableHandler';
931bf334 492
9457ca59
DO
493$page['myaccount']['title'] = 'My account';
494$page['myaccount']['parent'] = 'config';
495$tab['myaccount']['default'] = 'Info';
0ac7e4b3 496$tab['myaccount']['mypassword'] = 'Password change';
3540d15c 497$tab['myaccount']['interface'] = 'Interface preferences';
0ac7e4b3 498$trigger['myaccount']['mypassword'] = 'trigger_passwdchange';
9457ca59
DO
499$tabhandler['myaccount']['default'] = 'renderMyAccount';
500$tabhandler['myaccount']['mypassword'] = 'renderMyPasswordEditor';
3540d15c 501$tabhandler['myaccount']['interface'] = 'renderMyPreferences';
9457ca59 502$ophandler['myaccount']['mypassword']['changeMyPassword'] = 'changeMyPassword';
3540d15c
DY
503$ophandler['myaccount']['interface']['upd'] = 'saveMyPreferences';
504$ophandler['myaccount']['interface']['reset'] = 'resetMyPreference';
9457ca59 505
eebf9145 506$page['reports']['title'] = 'Reports';
e673ee24 507$page['reports']['parent'] = 'index';
e5c4506d 508$tab['reports']['default'] = 'System';
88d513cd 509$tab['reports']['rackcode'] = 'RackCode';
09620506 510$tab['reports']['ipv4'] = 'IPv4';
21ee3351 511$tab['reports']['ipv6'] = 'IPv6';
27ec21b2 512$tab['reports']['ports'] = 'Ports';
3b3c5e21 513$tab['reports']['8021q'] = '802.1Q';
09f6104a 514$tab['reports']['local'] = getConfigVar ('enterprise');
e5c4506d
DO
515$trigger['reports']['local'] = 'trigger_localreports';
516$tabhandler['reports']['default'] = 'renderSystemReports';
88d513cd 517$tabhandler['reports']['rackcode'] = 'renderRackCodeReports';
09620506 518$tabhandler['reports']['ipv4'] = 'renderIPv4Reports';
21ee3351 519$tabhandler['reports']['ipv6'] = 'renderIPv6Reports';
27ec21b2 520$tabhandler['reports']['ports'] = 'renderPortsReport';
3b3c5e21 521$tabhandler['reports']['8021q'] = 'render8021QReport';
e5c4506d 522$tabhandler['reports']['local'] = 'renderLocalReports';
e673ee24 523
e1ae3fb4
AD
524$page['files']['title'] = 'Files';
525$page['files']['parent'] = 'index';
8bc5d1e4
DO
526$tab['files']['default'] = 'Browse';
527$tab['files']['manage'] = 'Manage';
528$tabhandler['files']['default'] = 'renderFileBrowser';
529$tabhandler['files']['manage'] = 'renderFileManager';
530$ophandler['files']['manage']['addFile'] = 'addFileWithoutLink';
531$ophandler['files']['manage']['unlinkFile'] = 'unlinkFile';
71118db6 532$ophandler['files']['manage']['deleteFile'] = 'deleteFile';
e1ae3fb4 533
e1ae3fb4
AD
534$page['file']['bypass'] = 'file_id';
535$page['file']['bypass_type'] = 'uint';
f4d879a9 536$page['file']['parent'] = 'files';
e1ae3fb4 537$tab['file']['default'] = 'View';
6ee41bd4 538$tab['file']['edit'] = 'Properties';
e1ae3fb4 539$tab['file']['tags'] = 'Tags';
8628ae44 540$tab['file']['editText'] = 'Edit text';
db55cf54 541$tab['file']['replaceData'] = 'Upload replacement';
0df8c52b 542$tab['file']['download'] = 'Download';
e1ae3fb4 543$trigger['file']['tags'] = 'trigger_tags';
8628ae44 544$trigger['file']['editText'] = 'trigger_file_editText';
e1ae3fb4 545$tabhandler['file']['default'] = 'renderFile';
6ee41bd4
DO
546$tabhandler['file']['edit'] = 'renderFileProperties';
547$tabhandler['file']['tags'] = 'renderEntityTags';
8628ae44 548$tabhandler['file']['editText'] = 'renderTextEditor';
db55cf54 549$tabhandler['file']['replaceData'] = 'renderFileReuploader';
0df8c52b 550$tabhandler['file']['download'] = 'renderFileDownloader';
cc8e2c61 551$ophandler['file']['edit']['updateFile'] = 'tableHandler';
e1ae3fb4 552$ophandler['file']['tags']['saveTags'] = 'saveEntityTags';
8628ae44 553$ophandler['file']['editText']['updateFileText'] = 'updateFileText';
db55cf54 554$ophandler['file']['replaceData']['replaceFile'] = 'replaceFile';
e1ae3fb4 555
e0d188ef
DO
556$page['8021q']['title'] = '802.1Q';
557$page['8021q']['parent'] = 'index';
558$tab['8021q']['default'] = 'Status';
559$tab['8021q']['vdlist'] = 'Manage domains';
560$tab['8021q']['vstlist'] = 'Manage templates';
561$tabhandler['8021q']['default'] = 'render8021QStatus';
562$tabhandler['8021q']['vdlist'] = 'renderVLANDomainListEditor';
563$tabhandler['8021q']['vstlist'] = 'renderVSTListEditor';
564$ophandler['8021q']['vdlist']['add'] = 'createVLANDomain';
565$ophandler['8021q']['vdlist']['del'] = 'destroyVLANDomain';
cc8e2c61 566$ophandler['8021q']['vdlist']['upd'] = 'tableHandler';
e0d188ef
DO
567$ophandler['8021q']['vstlist']['add'] = 'addVLANSwitchTemplate';
568$ophandler['8021q']['vstlist']['del'] = 'delVLANSwitchTemplate';
cc8e2c61 569$ophandler['8021q']['vstlist']['upd'] = 'tableHandler';
8198f2c6 570
bd67be74 571$page['vlandomain']['parent'] = '8021q';
8198f2c6
DO
572$page['vlandomain']['bypass'] = 'vdom_id';
573$page['vlandomain']['bypass_type'] = 'uint';
574$tab['vlandomain']['default'] = 'View';
575$tab['vlandomain']['vlanlist'] = 'VLAN list';
ebb978b7 576$tab['vlandomain']['8021qorder'] = '802.1Q orders';
8198f2c6 577$tabhandler['vlandomain']['default'] = 'renderVLANDomain';
38cd7704 578$tabhandler['vlandomain']['8021qorder'] = 'render8021QOrderForm';
8198f2c6 579$tabhandler['vlandomain']['vlanlist'] = 'renderVLANDomainVLANList';
38cd7704
DO
580$ophandler['vlandomain']['8021qorder']['add'] = 'add8021QOrder';
581$ophandler['vlandomain']['8021qorder']['del'] = 'del8021QOrder';
e38cd1da 582$ophandler['vlandomain']['vlanlist']['add'] = 'tableHandler';
8198f2c6
DO
583$ophandler['vlandomain']['vlanlist']['del'] = 'delVLANDescription';
584$ophandler['vlandomain']['vlanlist']['upd'] = 'updVLANDescription';
585
ebb978b7
DO
586$page['vlan']['parent'] = 'vlandomain';
587$page['vlan']['bypass'] = 'vlan_ck';
588$page['vlan']['bypass_type'] = 'string';
589$tab['vlan']['default'] = 'View';
590$tab['vlan']['ipv4'] = 'IPv4';
21ee3351
AA
591$tab['vlan']['ipv6'] = 'IPv6';
592$trigger['vlan']['ipv4'] = 'trigger_vlan_ipv4net';
593$trigger['vlan']['ipv6'] = 'trigger_vlan_ipv6net';
ebb978b7 594$tabhandler['vlan']['default'] = 'renderVLANInfo';
21ee3351
AA
595$tabhandler['vlan']['ipv4'] = 'renderVLANIPLinks';
596$tabhandler['vlan']['ipv6'] = 'renderVLANIPLinks';
ebb978b7
DO
597$ophandler['vlan']['ipv4']['bind'] = 'bindVLANtoIPv4';
598$ophandler['vlan']['ipv4']['unbind'] = 'unbindVLANfromIPv4';
21ee3351
AA
599$ophandler['vlan']['ipv6']['bind'] = 'bindVLANtoIPv6';
600$ophandler['vlan']['ipv6']['unbind'] = 'unbindVLANfromIPv6';
ebb978b7 601
e0d188ef
DO
602$page['vst']['parent'] = '8021q';
603$page['vst']['bypass'] = 'vst_id';
604$page['vst']['bypass_type'] = 'uint';
605$tab['vst']['default'] = 'View';
09ec2e59 606$tab['vst']['editrules'] = 'Edit';
ebb978b7 607$tab['vst']['8021qorder'] = '802.1Q orders';
eb51ceff 608$trigger['vst']['editrules'] = 'trigger_vst_editrules';
e0d188ef
DO
609$tabhandler['vst']['default'] = 'renderVST';
610$tabhandler['vst']['editvst'] = 'renderVSTEditor';
611$tabhandler['vst']['editrules'] = 'renderVSTRulesEditor';
38cd7704 612$tabhandler['vst']['8021qorder'] = 'render8021QOrderForm';
e0d188ef 613$ophandler['vst']['editvst']['upd'] = 'updVLANSwitchTemplate';
09ec2e59 614$ophandler['vst']['editrules']['clone'] = 'cloneVSTRule';
e0d188ef 615$ophandler['vst']['editrules']['upd'] = 'updVSTRule';
38cd7704
DO
616$ophandler['vst']['8021qorder']['add'] = 'add8021QOrder';
617$ophandler['vst']['8021qorder']['del'] = 'del8021QOrder';
e0d188ef 618
ea99a9fc
DO
619$page['dqueue']['parent'] = '8021q';
620$page['dqueue']['bypass'] = 'dqcode';
621$page['dqueue']['bypass_type'] = 'string';
622$tab['dqueue']['default'] = 'View';
623$tabhandler['dqueue']['default'] = 'renderDeployQueue';
624
9a90adc4
DO
625$page['objectlog']['title'] = 'Log records';
626$page['objectlog']['parent'] = 'index';
627$tab['objectlog']['default'] = 'View';
628#$tab['objectlog']['add'] = 'Add'; // FIXME: finish, then enable
629$tabhandler['objectlog']['default'] = 'allObjectLogs';
630#$tabhandler['objectlog']['add'] = 'renderGlobalLogEditor';
631
e673ee24 632?>