vmware-nsx/neutron/api/v2
Paul Michali 8e76118dee Correct VPNaaS limit checks in extension
For the following VPNaaS attributes, ensure that these validation
tests are performed in the extension:

    keepalive >= 60 (seconds)
    mtu >= 0 (octets)
    DPD interval > 0 (seconds)
    DPD timeout > 0 (seconds)

Currently, the units for keepalive can only be seconds. If this
changes in the future (e.g. to allow kilobytes units), then the
test for the value will need to be changed.

To correctly test the MTU limits for an IPSec connection, the
protocol must be taken into consideration, which is defined by
the vpnservice object. Because of this dependency, we cannot
validate this in the extension, and will instead, just make
sure the value is positive.

Likewise, the attribute validators cannot ensure that the
DPD timeout is greater than the interval (again, because the
validators can only check the individual attributes one at
a time).

The range validator was modified to allow single ended ranges
for some of these attributes. The range also ensures the value
is an integer.

Companion changes are being made in the CLI code for these limit
changes.

Update: Fixed typo causing tox failure.

bug 1216117

Change-Id: I85d6175d81fbe7d27231aed48fb4691351e0db4c
2013-08-29 20:35:08 -04:00
..
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
attributes.py Correct VPNaaS limit checks in extension 2013-08-29 20:35:08 -04:00
base.py Externalize error messages in the API 2013-08-07 21:19:25 +00:00
resource.py Enable localizable REST API responses via the Accept-Language header 2013-08-07 21:19:25 +00:00
router.py Fix H102, H103 Apache 2.0 license hacking check error 2013-08-08 12:46:18 +09:00