Implement per-network protocol shaping

This commit is contained in:
emanuele-f 2016-11-27 01:48:00 +01:00
parent 9a559438a9
commit d52dc77e36
11 changed files with 649 additions and 269 deletions

View file

@ -511,10 +511,10 @@ print [[
print("</ul>")
end
print('<A class="btn btn-default btn-xs" HREF="'..ntop.getHttpPrefix()..'/lua/if_stats.lua?page=filtering&new_network='..host["ip"])
print('<A class="btn btn-default btn-xs" HREF="'..ntop.getHttpPrefix()..'/lua/if_stats.lua?page=filtering&view_network='..host["ip"])
if(host["ip"]:match(":")) then print("/128") else print("/32") end
if(host["vlan"] ~= nil) then print("&new_vlan="..host["vlan"]) end
print("&csrf="..ntop.getRandomCSRFValue())
print("@")
if(host["vlan"] ~= nil) then print(""..host["vlan"]) else print("0") end
print('">Modify Host Traffic Policy</A></div>')
if(host["bridge.ingress_shaper_id"] ~= nil) then