示例#1
0
 def __init__(self, interval=300):
     threading.Thread.__init__(self)
     self.interval = interval
     self.thread_stop = False
     session, catalog = api.get_admin_session()
     self.session = session
     self.catalog = catalog
     self.db_table_name = 'fws'
     #timeout = (connect_timeout, read_timeout)
     self.timeout = (3, 8)
     self.image_id = config.fw_image_id
     self.fw_server_port = config.daemon_server_port
     self.fw_SERVICE_API = '/api/fw/firewall/'
示例#2
0
 def __init__(self, interval=300):
     threading.Thread.__init__(self)
     self.interval = interval
     self.thread_stop = False
     session, catalog = api.get_admin_session()
     self.session = session
     self.catalog = catalog
     self.db_table_name = 'fws'
     #timeout = (connect_timeout, read_timeout)
     self.timeout = (3, 8)
     self.image_id = config.fw_image_id
     self.fw_server_port = config.daemon_server_port
     self.fw_SERVICE_API = '/api/fw/firewall/'
示例#3
0
 def __init__(self, interval=300):
     threading.Thread.__init__(self)
     self.interval = interval
     self.thread_stop = False
     session, catalog = api.get_admin_session()
     self.session = session
     self.catalog = catalog
     self.db_table_name = 'vpns'
     #timeout = (connect_timeout, read_timeout)
     self.timeout = (3, 8)
     self.image_id = config.vpn_image_id
     self.vpn_server_port = config.daemon_server_port
     self.VPN_SERVICE_API = '/api/vpn/ipsecservice/'
示例#4
0
 def __init__(self, interval=300):
     threading.Thread.__init__(self)
     self.interval = interval
     self.thread_stop = False
     session, catalog = api.get_admin_session()
     self.session = session
     self.catalog = catalog
     self.db_table_name = 'vpns'
     #timeout = (connect_timeout, read_timeout)
     self.timeout = (3, 8)
     self.image_id = config.vpn_image_id
     self.vpn_server_port = config.daemon_server_port
     self.VPN_SERVICE_API = '/api/vpn/ipsecservice/'