def filterrule_update(request, body):
    obj_id = body.pop('id', '')
    filterrule = {'filterrule': {'source_id': body['source_id'], 'destination_id': body['destination_id'], 'source_port': body['source_public_port'], 'destination_port': body['destination_public_port'], 'protocol': body['source_protocol'], 'action': body['policy']}}
    LOG.debug(('filterrule_update(): body = %s' % body))
    return _put(request, 'dhfilterrule', obj_id, filterrule)
def filterrule_update(request, body):
    obj_id = body.pop('id', )
    filterrule = {'filterrule': {'source_id': body['source_id'], 'destination_id': body['destination_id'], 'source_port': body['source_public_port'], 'destination_port': body['destination_public_port'], 'protocol': body['source_protocol'], 'action': body['policy']}}
    LOG.debug(('filterrule_update(): body = %s' % body))
    return _put(request, 'dhfilterrule', obj_id, filterrule)