neutron-lib/neutron_lib/tests/unit/api/validators
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
..
__init__.py Add validators package 2017-05-30 00:00:45 +09:00
test_allowedaddresspairs.py rehome allowedaddresspairs API definition 2017-08-07 09:56:38 -06:00
test_availability_zone.py rehome availability zone API def 2017-08-04 10:51:43 -06:00
test_dns.py Rehome dns-integration extension 2017-06-16 13:14:56 +09:00
test_multiprovidernet.py rehome multi provider net extension api definition 2017-11-02 10:27:46 -06:00
test_validators.py Add ethertype validator for custom ethertype validation 2019-07-19 12:45:36 -04:00