-- -- (C) 2014-20 - ntop.org -- local live_traffic_utils = {} function live_traffic_utils.printLiveTrafficForm(ifid, host_info) local has_vlan = (host_info and (tonumber(host_info["vlan"]) or 0) > 0) if has_vlan then local template = require "template_utils" print( template.gen("modal_confirm_dialog.html", { dialog = { id = "live_traffic_download_modal", action = "live_traffic_download_submit()", title = i18n("live_traffic.modal_vlan_tagged_with_bpf_title"), message = i18n("live_traffic.modal_vlan_tagged_with_bpf_confirmation", {vlan = host_info["vlan"]}), confirm = i18n("live_traffic.modal_vlan_tagged_with_bpf_continue") } }) ) end print[[
]] if host_info then print[[]] end print[[
 
]] end return live_traffic_utils