Sun zhengnan <nnu...@gmail.com> wrote:

Hi all

Can I use hostname as a nameserver when creating or updating a subnet?

From API perspective, yes...

I noticed that both ip and hostname are checked in neutron/api/attributes.py with _validate_nameservers.
But only ip address is allowed in _validate_subnet in db_base_plugin_v2.py

…assuming you don’t use db_base_plugin_v2 based plugin (read: any plugin that persists resources in neutron database).

Ihar

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to