def networkalias_update(request, body):
    obj_id = body.pop('id', '')
    networkalias = {'addressentry': {'name': body['name'], 'cidr': body['cidr']}}
    LOG.debug(('networkalias_update(): body = %s' % body))
    return _put(request, 'dhaddressentry', obj_id, networkalias)
def networkalias_update(request, body):
    obj_id = body.pop('id', )
    networkalias = {'addressentry': {'name': body['name'], 'cidr': body['cidr']}}
    LOG.debug(('networkalias_update(): body = %s' % body))
    return _put(request, 'dhaddressentry', obj_id, networkalias)