]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Verify MTU is valid for ipsec_site_connection
authorPaul Michali <pcm@cisco.com>
Mon, 2 Sep 2013 11:02:12 +0000 (07:02 -0400)
committerMark McClain <mark.mcclain@dreamhost.com>
Wed, 4 Sep 2013 02:36:28 +0000 (22:36 -0400)
commit0f9411948221b1df70d4a3f3d1271f821bea74aa
tree927c150113cfb43420502c78814f1092321eb4bf
parent71bbefbcc6d5e9cb12aaba1c3c8231e8f4241eb9
Verify MTU is valid for ipsec_site_connection

Since the check relies on the vpnservice subnet to determine whether
this is IPv4 ro IPv6, we must check in the plugin. Test is done at
create/update time and ensures that the MTU is equal to or greater
than the minimum allowed values, which are set to 68 for IPv4
minimum and 1280 for IPv6, respectively.

Refactored code to allow reuse of create and update test functions,
by allowing tests to override some settings, and to provide a dict
of changed items (for update).

bug 1219489

Change-Id: I3e62ef786d3a02c761903a15d546ee8758c0bf7f
neutron/db/vpn/vpn_db.py
neutron/extensions/vpnaas.py
neutron/tests/unit/db/vpn/test_db_vpnaas.py