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