예제 #1
0
    def __init__(self):
        LOG.debug(_("Initializing fwaas ngfw driver"))

        self.rest = ngfw_api.ngfwRestAPI()
        self.agent = ngfw_plugin.NGFWAgentUtils()
        self.plugutil = ngfw_plugin.NGFWPluginUtils()
        self.addr_set_cache = {}
        self.addr_set_cache_init()
        self.director_for_acl = self._get_director_for_acl()
        self.rule_failed_rollback = cfg.CONF.ngfw.rule_failed_rollback
예제 #2
0
    def __init__(self):
        LOG.debug(_("Initializing fwaas ngfw driver"))

        self.rest = ngfw_api.ngfwRestAPI()
        self.agent = ngfw_plugin.NGFWAgentUtils()           
        self.plugutil = ngfw_plugin.NGFWPluginUtils()
        self.addr_set_cache = {}
        self.addr_set_cache_init()
        self.director_for_acl = self._get_director_for_acl()
        self.rule_failed_rollback = cfg.CONF.ngfw.rule_failed_rollback
예제 #3
0
    def __init__(self, host, conf=None):
        LOG.debug(_('ngfwL3NATAgent: __init__'))
        self.rest = ngfw_api.ngfwRestAPI()
        self.agent = ngfw_plugin.NGFWAgentUtils()
        self.plugutil = ngfw_plugin.NGFWPluginUtils()
        self.devices = []
        
        self.auto_ngfw_save_filename = cfg.CONF.ngfw.auto_ngfw_save_filename
        self.director_for_fip = self._get_director_for_fip()
        self.last_save_time = 0
        super(ngfwL3NATAgent, self).__init__(host, conf)
        super(ngfwL3NATAgent, self).process_services_sync(self.context)

        #attempt connect ngfw, if can not connect ngfw, then exit ngfw-agent process
        response = self.rest.rest_api('GET', ngfw_utils.NGFW_URL_POLICY_SECURITY)
        if response['status'] >= 400:
            LOG.error(_('attempt get security-policy failed, exit ngfw-agent process.'))
            exit(1)
 def __init__(self):
     self.rest = ngfw_api.ngfwRestAPI()
예제 #5
0
 def __init__(self):
     self.rest = ngfw_api.ngfwRestAPI()