[openstack-dev] [neutron] use hostname as nameserver when creating subnet
Ihar Hrachyshka
ihrachys at redhat.com
Fri Apr 22 12:29:14 UTC 2016
Sun zhengnan <nnusun at 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
More information about the OpenStack-dev
mailing list