def initialize(self):
        LOG.info("Starting DFMechDriver")
        self.nb_api = None

        # When set to True, Nova plugs the VIF directly into the ovs bridge
        # instead of using the hybrid mode.
        self.vif_details = {portbindings.CAP_PORT_FILTER: True}
        self.vif_type = portbindings.VIF_TYPE_OVS
        self._set_base_port_binding()
        self.port_status = n_const.PORT_STATUS_ACTIVE
        self.subscribe_registries()
        df_qos.register()
Beispiel #2
0
    def initialize(self):
        LOG.info("Starting DFMechDriver")
        self.nb_api = None

        # When set to True, Nova plugs the VIF directly into the ovs bridge
        # instead of using the hybrid mode.
        self.vif_details = {portbindings.CAP_PORT_FILTER: True}
        self.vif_type = portbindings.VIF_TYPE_OVS
        self._set_base_port_binding()
        self.port_status = n_const.PORT_STATUS_ACTIVE
        self.trunk_driver = trunk_driver.DfTrunkDriver()
        if cfg.CONF.df.auto_detect_port_behind_port:
            self._port_behind_port_detector = (
                port_behind_port.DfPortBehindPortDetector())
        if cfg.CONF.df_loadbalancer.auto_enable_vip_ports:
            self._vip_port_enabler = vip_port_enabler.DfLBaaSVIPPortEnabler()
        self.subscribe_registries()
        df_qos.register()
        self.dhcp_module = dhcp_module.DFDHCPModule()