Merge "Add a description field to all standard resources"

This commit is contained in:
Jenkins 2016-03-06 04:56:54 +00:00 committed by Gerrit Code Review
commit cec8f507d7
1 changed files with 2 additions and 0 deletions

View File

@ -434,6 +434,8 @@ class NetworkClientJSON(service_client.ServiceClient):
update_body['name'] = kwargs.get('name', body['router']['name'])
update_body['admin_state_up'] = kwargs.get(
'admin_state_up', body['router']['admin_state_up'])
if 'description' in kwargs:
update_body['description'] = kwargs['description']
cur_gw_info = body['router']['external_gateway_info']
if cur_gw_info:
# TODO(kevinbenton): setting the external gateway info is not