summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-04-13 15:51:44 +0000
committerGerrit Code Review <review@openstack.org>2016-04-13 15:51:44 +0000
commit883f8208d33208ab9a15e09675df0fb2d55f82ce (patch)
treed109368191c3460075f63e8ff8177282aee32804 /openstackclient/network/v2
parent379fd726b67e192992b7389a83d3ff43285ab08f (diff)
parent03d932ea0b3074187bfcdd9c0422a968f5f56c59 (diff)
downloadpython-openstackclient-883f8208d33208ab9a15e09675df0fb2d55f82ce.tar.gz
Merge "Append existing information during subnet set"
Diffstat (limited to 'openstackclient/network/v2')
-rw-r--r--openstackclient/network/v2/subnet.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/openstackclient/network/v2/subnet.py b/openstackclient/network/v2/subnet.py
index eb96bb1f..abe49a69 100644
--- a/openstackclient/network/v2/subnet.py
+++ b/openstackclient/network/v2/subnet.py
@@ -365,6 +365,12 @@ class SetSubnet(command.Command):
if not attrs:
msg = "Nothing specified to be set"
raise exceptions.CommandError(msg)
+ if 'dns_nameservers' in attrs:
+ attrs['dns_nameservers'] += obj.dns_nameservers
+ if 'host_routes' in attrs:
+ attrs['host_routes'] += obj.host_routes
+ if 'allocation_pools' in attrs:
+ attrs['allocation_pools'] += obj.allocation_pools
client.update_subnet(obj, **attrs)
return