def portalias_update(request, body):
    obj_id = body.pop('id', '')
    portalias = {'portalias': {'name': body['alias_name'], 'protocol': body['protocol'], 'port': body['port']}}
    LOG.debug(('portalias_update(): body = %s' % body))
    return _put(request, 'dhportalias', obj_id, portalias)
def portalias_update(request, body):
    obj_id = body.pop('id', )
    portalias = {'portalias': {'name': body['alias_name'], 'protocol': body['protocol'], 'port': body['port']}}
    LOG.debug(('portalias_update(): body = %s' % body))
    return _put(request, 'dhportalias', obj_id, portalias)