21630128 Neutron needs to support updating subnet DNS configuration
authorXiangning Yu<xiangning.yu@oracle.com>
Thu, 24 Sep 2015 13:24:02 -0700
changeset 4902 d852c9504ffb
parent 4901 fef592cf5ac7
child 4903 6b60e63145ed
21630128 Neutron needs to support updating subnet DNS configuration
components/openstack/neutron/files/evs/plugin.py
--- a/components/openstack/neutron/files/evs/plugin.py	Thu Sep 24 12:56:40 2015 -0700
+++ b/components/openstack/neutron/files/evs/plugin.py	Thu Sep 24 13:24:02 2015 -0700
@@ -296,12 +296,13 @@
         evs_rpccall_sync = subnet.pop('evs_rpccall_sync', False)
         if (set(subnet['subnet'].keys()) - set(('enable_dhcp',
                                                 'allocation_pools',
+                                                'dns_nameservers',
                                                 'ipv6_address_mode',
                                                 'ipv6_ra_mode'))):
                 raise EVSOpNotSupported(_("only following subnet attributes "
                                           "enable-dhcp, allocation-pool, "
-                                          "ipv6-address-mode, and "
-                                          "ipv6-ra-mode can be updated"))
+                                          "dns-nameserver, ipv6-address-mode, "
+                                          "and ipv6-ra-mode can be updated"))
 
         poolstr = self._subnet_pool_to_evs_pool(subnet['subnet'])