neutron/neutron/services/trunk/validators
Armando Migliaccio 5588f45a6d Improve the segmentation ID validation logic
Segmentation ID is meant to be an Integer as per model,
and as such it is best to attempt a conversion in case
it happens to be sent as string as done in [1]. The
failure mode in this case is not immediately obvious
as the ID range check fails and yet the ID is indeed
in range.

This patch also dedups some logic, clean up and add a
test.

[1] https://review.openstack.org/#/c/340624/7/neutronclient/osc/v2/trunk/subport.py@36

Partially-implements: blueprint vlan-aware-vms

Change-Id: I7ca4c93fdf0ab83088194e9a343448ed511d4cdb
2016-07-21 16:44:06 +00:00
..
__init__.py Enable CRUD for trunk ports 2016-07-02 16:09:45 -07:00
vlan.py Improve the segmentation ID validation logic 2016-07-21 16:44:06 +00:00