def addressgroup_update(request, body):
    obj_id = body.pop('id', '')
    addressgroup = {'addressgroup': {'name': body['name']}}
    LOG.debug(('addressgroup_update(): body = %s' % body))
    return _put(request, 'dhaddressgroup', obj_id, addressgroup)
def addressgroup_update(request, body):
    obj_id = body.pop('id', )
    addressgroup = {'addressgroup': {'name': body['name']}}
    LOG.debug(('addressgroup_update(): body = %s' % body))
    return _put(request, 'dhaddressgroup', obj_id, addressgroup)