neutron-lib/neutron_lib/tests/unit/api
Nate Johnston db04334582 Add ethertype validator for custom ethertype validation
Since the restriction on ethertypes is being raised so that ethertypes
other than IPv4 and IPv6 can be specified in security group rules, add a
validator to ensure that ethertypes will be a valid two octet value.
The ethertype handling is configurable so make sure the validator
handles both possible configuration alternatives: the original style
where only IPv4 and IPv6 are valid, and the new style where any valid
two octet number (or it's string equivalent) works.

Related-Bug: #1832758
Needed-By: https://review.opendev.org/670203
Change-Id: I900f370f1de20b5137f138e54c5eec2102f77cce
2019-07-19 12:45:36 -04:00
..
definitions Merge "Add shim extension admin_state_down_before_update" 2019-07-10 15:35:16 +00:00
validators Add ethertype validator for custom ethertype validation 2019-07-19 12:45:36 -04:00
__init__.py API validators and converters 2016-01-15 12:44:09 +00:00
test_attributes.py Add sort_keys retrieving function 2019-05-14 15:24:52 +00:00
test_conversions.py rehome sqlalchemytypes 2019-02-27 14:54:39 -07:00
test_extensions.py class methods and sub resources in base api ext 2017-11-16 20:23:50 +00:00
test_faults.py Rehome FAULT_MAP from the neutron API 2017-07-14 11:56:03 +03:00