Example #1
0
 def setUp(self, mock_moref, mock_session):
     super(DvsTestCase, self).setUp()
     cfg.CONF.set_override('dvs_name', 'fake_dvs', group='dvs')
     self._dvs = dvs.SingleDvsManager()
     self.assertEqual(mock_moref.return_value, self._dvs._dvs_moref)
     mock_moref.assert_called_once_with(mock_session.return_value,
                                        'fake_dvs')
Example #2
0
 def initialize(self):
     LOG.info("Starting VDS mech driver")
     try:
         self._dvs = dvs.SingleDvsManager()
     except Exception:
         # backward compatibility
         self._dvs = dvs.DvsManager()
Example #3
0
 def __init__(self):
     super(NsxDvsV2, self).__init__()
     LOG.debug('Driver support: DVS: %s' % dvs_utils.dvs_is_enabled())
     neutron_extensions.append_api_extensions_path(
         [vmware_nsx.NSX_EXT_PATH])
     self.cfg_group = 'dvs'  # group name for dvs section in nsx.ini
     self._dvs = dvs.SingleDvsManager()
     self.setup_dhcpmeta_access()
Example #4
0
 def __init__(self):
     dvs_utils.dvs_register_exceptions()
     self._extension_manager = nsx_managers.ExtensionManager()
     super(NsxDvsV2, self).__init__()
     LOG.debug('Driver support: DVS: %s' % dvs_utils.dvs_is_enabled())
     self._extension_manager.initialize()
     self.supported_extension_aliases.extend(
         self._extension_manager.extension_aliases())
     neutron_extensions.append_api_extensions_path(
         [vmware_nsx.NSX_EXT_PATH])
     self.cfg_group = 'dvs'  # group name for dvs section in nsx.ini
     self._dvs = dvs.SingleDvsManager()
     self.setup_dhcpmeta_access()