This commit deletes useless and wrong comments in NEC Plugin, and adds
_clean_nec_ini() to Cleanup to make sure it is called.
Fixes: bug #1208716
Change-Id: I5c7950617cdf5d66f5f5cf3334bf2d5e617148eb
return port
- # Quantm Plugin Basic methods
-
def create_network(self, context, network):
"""Create a new network entry on DB, and create it on OFC."""
LOG.debug(_("NECPluginV2.create_network() called, "
self.addCleanup(mock.patch.stopall)
self._set_nec_ini()
+ self.addCleanup(self._clean_nec_ini)
super(NecPluginV2TestCase, self).setUp(self._plugin_name)
- # NOTE: `test_config' is global, and most tests don't set
- # test_config['config_files'] but read this in setUp().
- # So clean test_config['config_files'] ASAP, to avoid side effects
- # on other tests which are running at the same time.
- self._clean_nec_ini()
self.plugin = manager.NeutronManager.get_plugin()
self.plugin.ofc = fake_ofc_manager.patch_ofc_manager()