Lua scripts parameters validation (#970)

* partial work

* Migrate 'mode' parameters

* Migrate alerts types

* Fix some interface ids

* Partial work

* Partial work

* End of work for _GET parameters

* Work in progress

* Add support for special parameters

* Preferences validation

* Fixes and improvements

* Enforce interger validation
This commit is contained in:
Emanuele Faranda 2017-02-08 12:25:35 +01:00 committed by simonemainardi
parent 6b03576d1d
commit afdfac1c9c
88 changed files with 1247 additions and 524 deletions

View file

@ -10,7 +10,6 @@ require "lua_utils"
sendHTTPHeader('application/json')
host_ip = _GET["host"]
host_id = _GET["host_id"]
interface.select(ifname)
flows_stats = interface.getFlowsInfo(host_ip)