mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Handles save/discard nEdge config
This commit is contained in:
parent
8694cdfbb2
commit
3c83a73602
3 changed files with 21 additions and 0 deletions
|
|
@ -2583,6 +2583,16 @@ function get_manufacturer_mac(mac_address)
|
|||
return ret
|
||||
end
|
||||
|
||||
function file_exists(name)
|
||||
local f = io.open(name,"r")
|
||||
|
||||
if f ~= nil then io.close(f)
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
-- rrd_exists
|
||||
function rrd_exists(host_ip, rrdname)
|
||||
if(host_ip == nil) then return false end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue