def filterrule_create(request, body):
    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_create(): body = %s' % body))
    return _create(request, 'dhfilterrule', filterrule)
def filterrule_create(request, body):
    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_create(): body = %s' % body))
    return _create(request, 'dhfilterrule', filterrule)