Пример #1
0
    def initialize(self):
        """Initialize the Mechanism driver."""

        self.vif_type = portbindings.VIF_TYPE_OVS
        self.vif_details = {portbindings.CAP_PORT_FILTER: True}
        LOG.info(_LI("Initializing CRD client... "))
        self._crdclient = config.get_crdclient()
Пример #2
0
    def initialize(self):
        """Initialize the Mechanism driver."""

        self.vif_type = portbindings.VIF_TYPE_OVS
        self.vif_details = {portbindings.CAP_PORT_FILTER: True}
        LOG.info(_("Initializing CRD client... "))
        self._crdclient = config.get_crdclient()
Пример #3
0
    def __init__(self):
        """Do the initialization for the firewall service plugin here."""

        self._client = config.get_crdclient()
        self.endpoints = [FirewallCallbacks(self)]

        self.conn = rpc.create_connection()
        self.conn.create_consumer(
            topics.FIREWALL_PLUGIN, self.endpoints, fanout=False)
        self.conn.consume_in_threads()
Пример #4
0
    def __init__(self):
        """Do the initialization for the optimizer service plugin here."""

        self._client = config.get_crdclient()
        self.endpoints = [OptimizerCallbacks(self)]

        self.conn = rpc.create_connection(new=True)
        self.conn.create_consumer(
            topics.OPTIMIZER_PLUGIN, self.endpoints, fanout=False)
        self.conn.consume_in_threads()
Пример #5
0
    def __init__(self):
        """Do the initialization for the firewall service plugin here."""

        self._client = config.get_crdclient()
        self.endpoints = [FirewallCallbacks(self)]

        self.conn = rpc.create_connection(new=True)
        self.conn.create_consumer(topics.FIREWALL_PLUGIN,
                                  self.endpoints,
                                  fanout=False)
        self.conn.consume_in_threads()