mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Legacy code no longer used
This commit is contained in:
parent
30577faf16
commit
7d4a14f8f4
3 changed files with 1 additions and 120 deletions
|
|
@ -17,18 +17,6 @@ local manuf_filter = _GET["manufacturer"]
|
|||
|
||||
-- ################################################
|
||||
|
||||
local doa_ox_fd = nil
|
||||
local doa_ox = nil
|
||||
|
||||
local enable_doa_ox = false
|
||||
|
||||
if(enable_doa_ox) then
|
||||
local doa_ox = require "doa_ox"
|
||||
doa_ox_fd = doa_ox.init("/tmp/doa_ox.update")
|
||||
end
|
||||
|
||||
-- ################################################
|
||||
|
||||
if isEmptyString(ifid) then
|
||||
ifid = interface.getId()
|
||||
end
|
||||
|
|
@ -41,10 +29,6 @@ local discovered = discover.discover2table(ifname)
|
|||
|
||||
-- ################################################
|
||||
|
||||
if(enable_doa_ox) then
|
||||
doa_ox.header(doa_ox_fd)
|
||||
end
|
||||
|
||||
discovered["devices"] = discovered["devices"] or {}
|
||||
|
||||
for _, el in pairs(discovered["devices"]) do
|
||||
|
|
@ -97,14 +81,6 @@ for _, el in pairs(discovered["devices"]) do
|
|||
end
|
||||
el.info = devinfo
|
||||
|
||||
if(enable_doa_ox) then
|
||||
if el.os then
|
||||
el.operatingSystem = discover.getOsName(el.os)
|
||||
end
|
||||
|
||||
doa_ox.device2OX(doa_ox_fd, el)
|
||||
end
|
||||
|
||||
-- Filter
|
||||
if (os_filter ~= nil) and (el.os_type ~= os_filter) then
|
||||
goto continue
|
||||
|
|
@ -135,10 +111,6 @@ for _, el in pairs(discovered["devices"]) do
|
|||
::continue::
|
||||
end
|
||||
|
||||
if(enable_doa_ox) then
|
||||
doa_ox.term(doa_ox_fd)
|
||||
end
|
||||
|
||||
-- ################################################
|
||||
|
||||
rest_utils.answer(rest_utils.consts.success.ok, res)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue