removed service map and periodicity map from community

This commit is contained in:
gabryon99 2020-12-23 17:15:50 +01:00
parent 5f801c53fb
commit 00e12add95
7 changed files with 29 additions and 80 deletions

View file

@ -4002,7 +4002,7 @@ function buildHostHREF(ip_address, vlan_id, page)
end
end
function builServiceMapHREF(ip_address, vlan_id)
function builMapHREF(ip_address, vlan_id, map, default_page)
local stats = cache[ip_address]
@ -4020,15 +4020,16 @@ function builServiceMapHREF(ip_address, vlan_id)
local res
if((name == nil) or (name == "")) then name = ip_address end
res = '<a href="'..ntop.getHttpPrefix()..'/lua/pro/enterprise/service_map.lua?host='..ip_address
res = '<a href="'..ntop.getHttpPrefix()..'/lua/pro/enterprise/'..map..'_map.lua?host='..ip_address
if(vlan_id and (vlan_id ~= 0)) then res = res .. "@"..vlan_id end
res = res ..'&page=graph">'..name..'</A>'
res = res ..'&page='..default_page..'">'..name..'</A>'
return(res)
end
end
--
-- IMPORTANT
-- Leave it at the end so it can use the functions