def policy_service():
    policy_service = l7policy_service.L7PolicyService(Mock())
    policy_service.policy_helper = Mock()
    policy_service.policy_helper.create = Mock()
    policy_service.policy_helper.update = Mock()
    policy_service.policy_helper.delete = Mock()

    return policy_service
예제 #2
0
 def __init__(self, conf, driver, l2_service=None):
     self.conf = conf
     self.driver = driver
     self.l2_service = l2_service
     self.service_adapter = driver.service_adapter
     self.listener_builder = listener_service.ListenerServiceBuilder(
         self.service_adapter, driver.cert_manager,
         conf.f5_parent_ssl_profile)
     self.pool_builder = pool_service.PoolServiceBuilder(
         self.service_adapter)
     self.l7service = l7policy_service.L7PolicyService(conf)
예제 #3
0
    def __init__(self, conf, driver, l2_service=None):
        self.conf = conf
        self.driver = driver
        self.l2_service = l2_service
        self.service_adapter = driver.service_adapter
        self.listener_builder = listener_service.ListenerServiceBuilder(
            self.service_adapter, driver.cert_manager,
            conf.f5_parent_ssl_profile)
        self.pool_builder = pool_service.PoolServiceBuilder(
            self.service_adapter)
        self.l7service = l7policy_service.L7PolicyService(conf)
        self.esd = None

        # pzhang LBaaSBuilder is not a singleton, no race condition
        self.to_sync = False