Ejemplo n.º 1
0
 def __init__(self, vse):
     qdbapi.register_models(base=model_base.BASEV2)
     self.vse = vse
     #self.uriprefix = '/api/3.0/edges/{0}/ipsec'.format(
     self.uriprefix = '/api/4.0/edges/{0}/ipsec'.format(
         vse.get_edgeId())
     self.enabled = False
Ejemplo n.º 2
0
    def __init__(self, vse):
        qdbapi.register_models(base=model_base.BASEV2)
        self.vse = vse
#        self.uriprefix = '/api/3.0/edges/{0}/loadbalancer'.format(
        self.uriprefix = '/api/4.0/edges/{0}/firewall'.format(
            vse.get_edgeId())
        self.ipseturi = '/api/2.0/services/ipset'
        self.appuri = '/api/2.0/services/application'
Ejemplo n.º 3
0
 def __init__(self):
     """
     Do the initialization for the vpn service plugin here.
     """
     # Hard coded for now
     vseapi = VseAPI(edgeUri, edgeUser, edgePasswd, edgeId)
     self.vsevpn = VPNAPI(vseapi)
     qdbapi.register_models(base=model_base.BASEV2)
Ejemplo n.º 4
0
    def __init__(self):
        """Do the initialization for the loadbalancer service plugin here."""
        qdbapi.register_models()

        self.callbacks = LoadBalancerCallbacks(self)

        self.conn = rpc.create_connection(new=True)
        self.conn.create_consumer(topics.LOADBALANCER_PLUGIN,
                                  self.callbacks.create_rpc_dispatcher(),
                                  fanout=False)
        self.conn.consume_in_thread()

        self.agent_rpc = LoadBalancerAgentApi(topics.LOADBALANCER_AGENT,
                                              cfg.CONF.host)
Ejemplo n.º 5
0
    def __init__(self):
        """Do the initialization for the loadbalancer service plugin here."""
        qdbapi.register_models()

        self.callbacks = LoadBalancerCallbacks(self)

        self.conn = rpc.create_connection(new=True)
        self.conn.create_consumer(
            topics.LOADBALANCER_PLUGIN,
            self.callbacks.create_rpc_dispatcher(),
            fanout=False)
        self.conn.consume_in_thread()

        self.agent_rpc = LoadBalancerAgentApi(
            topics.LOADBALANCER_AGENT,
            cfg.CONF.host
        )
Ejemplo n.º 6
0
    def __init__(self):
        """
        Do the initialization for the vpn service plugin here.
        """
        #qdbapi.register_models(base=model_base.BASEV2)

        qdbapi.register_models()

        self.callbacks = VPNCallbacks(self)

        self.conn = rpc.create_connection(new=True)
        self.conn.create_consumer(
            topics.VPN_PLUGIN,
            self.callbacks.create_rpc_dispatcher(),
            fanout=False)
        self.conn.consume_in_thread()

        self.agent_rpc = VPNAgentApi(
            topics.VPN_AGENT,
            cfg.CONF.host
        )
Ejemplo n.º 7
0
 def __init__(self):
     """
     Do the initialization for the loadbalancer service plugin here.
     """
     qdbapi.register_models(base=model_base.BASEV2)
Ejemplo n.º 8
0
 def __init__(self):
     qdbapi.register_models(base=model_base.BASEV2)
Ejemplo n.º 9
0
 def _initialize_db(self):
     db.configure_db()
     # Register models for service type management
     # Note this might have been already done if configure_db also
     # created the engine
     db.register_models(models_v2.model_base.BASEV2)
Ejemplo n.º 10
0
    def __init__(self):
        """Initialization for the loadbalancer service plugin."""

        qdbapi.register_models()
        self.driver = importutils.import_object(
            cfg.CONF.LBAAS.driver_fqn, self)
Ejemplo n.º 11
0
 def _initialize_db(self):
     db.configure_db()
     # Register models for service type management
     # Note this might have been already done if configure_db also
     # created the engine
     db.register_models(models_v2.model_base.BASEV2)
Ejemplo n.º 12
0
    def __init__(self):
        """Initialization for the loadbalancer service plugin."""

        qdbapi.register_models()
        self._load_drivers()
Ejemplo n.º 13
0
    def __init__(self):
        """Initialization for the loadbalancer service plugin."""

        qdbapi.register_models()
        self._load_drivers()
Ejemplo n.º 14
0
    def __init__(self):
        """Initialization for the loadbalancer service plugin."""

        qdbapi.register_models()
        self.driver = importutils.import_object(cfg.CONF.LBAAS.driver_fqn,
                                                self)