def setUp(self):
        super(TestCsrAclDriver, self).setUp()

        self.csr = mock.Mock()

        self.csracl = csr_acl_driver.CsrAclDriver()
        self.csracl._get_csr_host = mock.Mock(return_value=self.csr)

        self.acl_data = self.csracl._get_acl_rule_data(FAKE_FW)
        self.aclapi_response = 'https://' + FAKE_FW[
                'vendor_ext']['host_mngt_ip'] + '/' + FAKE_ACL_ID
    def __init__(self, host, conf, cfg_agent):
        super(CsrFirewallServiceHelper, self).__init__()
        self.conf = conf
        self.cfg_agent = cfg_agent
        self.fullsync = True
        self.event_q = service_helper.QueueMixin()
        self.fw_plugin_rpc = CsrFirewalllPluginApi('CISCO_FW_PLUGIN',
                                                   conf.host)
        self.topic = 'CISCO_FW'
        self._setup_rpc()

        self.acl_driver = csr_acl_driver.CsrAclDriver()
 def setUp(self):
     super(TestCsrAclDriverValidation, self).setUp()
     self.csracl = csr_acl_driver.CsrAclDriver()
     self.firewall = copy.deepcopy(FAKE_FW)