Adds policy setup for custom netowrks in bridge mode (implements #372)

Traffic policies can now be setup for custom networks and not only
local networks.

Sanity checks on network CIDR and VLAN numbers have been introduced.

A minor bug that prevented per-host traffic policies to be populated has been fixed as well.
This commit is contained in:
Simone Mainardi 2016-02-07 17:27:42 +01:00
parent a4bc586f36
commit ebe834ea15
2 changed files with 181 additions and 160 deletions

View file

@ -70,7 +70,7 @@ var totalRows = -1;
$('a[href="#historical-top-apps"]').on('shown.bs.tab', function (e) {
var target = $(e.target).attr("href"); // activated tab
$('#historical-top-applications-table').datatable({
title: "", id: "a-big-dog",]]
title: "",]]
print("url: '"..ntop.getHttpPrefix().."/lua/get_historical_data.lua?stats_type=top_applications"..top_apps_url_params.."',")
if preference ~= "" then print ('perPage: '..preference.. ",") end
-- Automatic default sorted. NB: the column must be exists.