Merge "Change force_dhcp_release default to True"
This commit is contained in:
commit
915aaee65a
@ -1198,7 +1198,7 @@
|
|||||||
|
|
||||||
# If True, send a dhcp release on instance termination
|
# If True, send a dhcp release on instance termination
|
||||||
# (boolean value)
|
# (boolean value)
|
||||||
#force_dhcp_release=false
|
#force_dhcp_release=true
|
||||||
|
|
||||||
# If True in multi_host mode, all compute hosts share the same
|
# If True in multi_host mode, all compute hosts share the same
|
||||||
# dhcp address. (boolean value)
|
# dhcp address. (boolean value)
|
||||||
|
@ -148,7 +148,7 @@ network_opts = [
|
|||||||
'deleted in VLAN network mode with multi hosted '
|
'deleted in VLAN network mode with multi hosted '
|
||||||
'networks'),
|
'networks'),
|
||||||
cfg.BoolOpt('force_dhcp_release',
|
cfg.BoolOpt('force_dhcp_release',
|
||||||
default=False,
|
default=True,
|
||||||
help='If True, send a dhcp release on instance termination'),
|
help='If True, send a dhcp release on instance termination'),
|
||||||
cfg.BoolOpt('share_dhcp_address',
|
cfg.BoolOpt('share_dhcp_address',
|
||||||
default=False,
|
default=False,
|
||||||
|
@ -250,6 +250,7 @@ class TestCase(testtools.TestCase):
|
|||||||
self.policy = self.useFixture(policy_fixture.PolicyFixture())
|
self.policy = self.useFixture(policy_fixture.PolicyFixture())
|
||||||
CONF.set_override('fatal_exception_format_errors', True)
|
CONF.set_override('fatal_exception_format_errors', True)
|
||||||
CONF.set_override('enabled', True, 'osapi_v3')
|
CONF.set_override('enabled', True, 'osapi_v3')
|
||||||
|
CONF.set_override('force_dhcp_release', False)
|
||||||
|
|
||||||
def _restore_obj_registry(self):
|
def _restore_obj_registry(self):
|
||||||
objects_base.NovaObject._obj_classes = self._base_test_obj_backup
|
objects_base.NovaObject._obj_classes = self._base_test_obj_backup
|
||||||
|
Loading…
Reference in New Issue
Block a user