neutron/neutron/tests/unit
Ihar Hrachyshka a984f9554c Calculate MTU on every network fetch instead of on create
Today, existing networks may not reflect MTU configured for
neutron-server, if they were created when neutron-server was using
different MTU setup for its infrastructure, or when it was using bad
default values for network MTUs (specifically, before Mitaka, all networks
were getting MTU = 0 by default, disabling both advertisement and data
path MTU size enforcement).

This patch stops persisting MTU in the database on network create and
instead calculate it on every network resource fetch.

DocImpact Now changes to MTU configuration options immediately affect
          existing network MTUs, not just new networks.

UpgradeImpact Existing networks with invalid MTU persisted in database
              may change their MTU values to reflect configuration.

Change-Id: Iee4f5037bf10b73ba98464143b183aacb59c22f2
Closes-Bug: #1556182
2016-07-20 13:26:50 +02:00
..
agent Merge "Fix a pylint error in an L3 agent unit test" 2016-07-19 00:08:30 +00:00
api delete event payload 2016-07-13 23:48:59 +05:30
callbacks Separate exception class for retriables in callbacks 2016-06-22 23:03:09 +00:00
cmd enable OVSDB native interface by default 2016-06-25 10:43:12 +03:00
common Merge "cache_utils: fixed cache misses for the new (oslo.cache) configuration" 2016-07-14 11:39:39 +00:00
core_extensions Respond negatively to tenant detachment of enforced QoS policies 2016-05-16 21:54:15 +00:00
db Calculate MTU on every network fetch instead of on create 2016-07-20 13:26:50 +02:00
debug tests: stop validating neutronclient in neutron-debug tests 2016-01-14 06:46:45 +00:00
extensions Calculate MTU on every network fetch instead of on create 2016-07-20 13:26:50 +02:00
hacking Add a hacking rule for string interpolation at logging 2016-07-11 22:54:56 +00:00
ipam Replace device owners hard coded strings to neutron_lib constants 2016-07-12 04:11:35 -04:00
notifiers When deleting floating IP catch PortNotFound 2016-07-06 11:14:07 +00:00
objects Merge "Allow unique keys to be used with get_object" 2016-07-12 16:31:01 +00:00
plugins Calculate MTU on every network fetch instead of on create 2016-07-20 13:26:50 +02:00
quota Fix module's import order 2016-01-22 06:38:42 -08:00
scheduler Replace device owners hard coded strings to neutron_lib constants 2016-07-12 04:11:35 -04:00
services Emit registry events on subport addition/removal 2016-07-08 17:04:56 -06:00
tests Use neutron-lib constants 2016-06-13 14:02:35 +00:00
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
_test_extension_portbindings.py Fix module's import order 2016-01-22 06:38:42 -08:00
dummy_plugin.py Make service plugins' get_plugin_type classmethods 2016-06-07 15:33:07 -05:00
extension_stubs.py Add a description field to all standard resources 2016-03-05 02:29:35 +00:00
test_auth.py Fix params order in assertEqual 2016-01-13 18:24:04 +05:30
test_context.py Support Unicode request_id on Python 3 2015-11-27 16:21:16 +01:00
test_manager.py Add the ability to load a set of service plugins on startup 2016-02-10 10:04:15 -06:00
test_opts.py Fix the sriov agent config group name 2016-05-05 16:16:08 +08:00
test_policy.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
test_service.py Refactor TestRpcWorker and TestWorkerService 2015-06-16 15:49:48 +03:00
test_wsgi.py Use exceptions from neutron-lib 2016-04-21 21:29:44 -04:00
testlib_api.py New engine facade from oslo_db: Step 2 2016-07-06 16:32:43 +03:00