mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Implemented interface rescan (#9511)
* Implemented interface rescan * Changed confirmation message for recscan interfaces
This commit is contained in:
parent
63c8dd991d
commit
daba9b5d82
4 changed files with 43 additions and 4 deletions
|
|
@ -713,6 +713,15 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function system_config:rescanInterfaces()
|
||||
if isAdministrator() then
|
||||
os.remove(system_config.configFile())
|
||||
sys_utils.rebootSystem()
|
||||
end
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function system_config:_getNetworkInterfaceConfig(iface, if_type)
|
||||
local network_config = self.config.interfaces.configuration
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue