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