mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 06:59:33 +00:00
Update nedge configuration test
This commit is contained in:
parent
82aacd5ca0
commit
3bbc36e23e
2 changed files with 10 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ end
|
|||
local http_bridge_conf_utils = {}
|
||||
|
||||
-- set to a non-empty value to enable HTTP configuration, e.g.,
|
||||
-- http_bridge_conf_utils.HTTP_BRIDGE_CONFIGURATION_URL = "localhost:8000"
|
||||
--http_bridge_conf_utils.HTTP_BRIDGE_CONFIGURATION_URL = "localhost:8000"
|
||||
http_bridge_conf_utils.HTTP_BRIDGE_CONFIGURATION_URL = ""
|
||||
|
||||
function http_bridge_conf_utils.configureBridge()
|
||||
|
|
@ -144,7 +144,7 @@ function http_bridge_conf_utils.configureBridge()
|
|||
if ndpi_protocols[lowercase_name] then
|
||||
proto_id_or_category = ndpi_protocols[lowercase_name]
|
||||
proto_name = string.format("Protocol %s/%d", proto, ndpi_protocols[lowercase_name])
|
||||
else if ndpi_categories[lowercase_name] then
|
||||
elseif ndpi_categories[lowercase_name] then
|
||||
proto_id_or_category = "cat_"..ndpi_categories[lowercase_name]
|
||||
proto_name = string.format("Category %s/%d", proto, ndpi_categories[lowercase_name])
|
||||
else
|
||||
|
|
|
|||
|
|
@ -2,7 +2,12 @@
|
|||
|
||||
import sys
|
||||
import json
|
||||
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
|
||||
|
||||
# Python 2
|
||||
#from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
|
||||
|
||||
# Python 3
|
||||
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||
|
||||
FORMATS = ('json')
|
||||
'''
|
||||
|
|
@ -21,7 +26,8 @@ sample_bridge_config = {
|
|||
"policies" : {10 : "slow_pass",
|
||||
"Facebook": "pass",
|
||||
"MyCustomProtocol": "pass",
|
||||
"YouTube": "pass"}
|
||||
"YouTube": "pass",
|
||||
"ConnectivityCheck": "pass"}
|
||||
},
|
||||
"maina" : {
|
||||
"full_name": "Maina Fast",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue