ntopng/python/test.py
2022-12-03 13:37:39 +01:00

28 lines
431 B
Python
Executable file

#!/usr/bin/env python3
#
# Test application for python API
#
from ntopng import ntopng
from interface import interface
from host import host
from flow import flow
import os
my_ntopng = ntopng('admin', 'admin', 'http://localhost:3000')
ifid = 4
my_interface = interface(my_ntopng)
my_interface.self_test(ifid)
my_host = host(my_ntopng)
my_host.self_test(ifid)
my_flow = flow(my_ntopng)
my_flow.self_test(ifid)
os._exit(0)