]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow to define enable_snat default value
authorCedric Brandily <zzelle@gmail.com>
Thu, 23 Oct 2014 15:49:46 +0000 (17:49 +0200)
committerCedric Brandily <zzelle@gmail.com>
Wed, 6 May 2015 22:10:50 +0000 (00:10 +0200)
commitcf84ec4c10461bef6dd57b9645cb902e0c16584f
treeefb187e68a239dc5206f36986fd3d39cfd01f8b3
parent8978516e49a246fb490dad9a2a4e34f1e98afea5
Allow to define enable_snat default value

Currently neutron resets enable_snat attribute to True when enable_snat
is not provided in router external_gateway_info. But in some deployments
(private/enterprise clouds) such behavior is not the expected default
one as snat/nat/floating-ips is not used (at least by default).

This change defines the option enable_snat_by_default which allows
deployers to set enable_snat default value when neutron resets it. The
option default value is True for backward compatibility.

DocImpact
APIImpact
Closes-Bug: #1388858
Change-Id: I455a552230ec89fe907a087c1de8c8144b5d086e
etc/neutron.conf
neutron/db/l3_gwmode_db.py
neutron/tests/unit/extensions/test_l3_ext_gw_mode.py