]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Kill hostname validation for subnet:dns_nameservers
authorIhar Hrachyshka <ihrachys@redhat.com>
Mon, 30 Mar 2015 12:35:15 +0000 (14:35 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Fri, 10 Apr 2015 17:11:58 +0000 (19:11 +0200)
commitfd162a82776d64af9abc5595d1b8d2473dfce8f2
tree56aa79868425b250e7306ca4e76f5cb918603a19
parent9c0f00a0a7b7b8b794b4858eb7f635fe2eba560c
Kill hostname validation for subnet:dns_nameservers

DNS servers that are hostnames seem like a bad idea. They are also not
supported by base_db_plugin_v2 [1] anyway, so there is no big reason to
pass them thru API validation only to receive InvalidInput later inside
plugin code.

[1]: http://git.openstack.org/cgit/openstack/neutron/tree/neutron/db/db_base_plugin_v2.py#n1049

Change-Id: I2db00fe266fe0748d0e6327fbad22fa16b751da8
Related-Bug: #1396932
neutron/api/v2/attributes.py
neutron/tests/unit/api/v2/test_attributes.py