def filterrule_list(request):
    r = _list(request, 'dhfilterrule')
    return [FilterRule(item.get('source'), item['source_port'], item.get('destination'), item['destination_port'], item['protocol'], item['action'], request, item['id']) for item in r.get('filterrules', {})]
def filterrule_list(request):
    r = _list(request, 'dhfilterrule')
    return [FilterRule(item.get('source'), item['source_port'], item.get('destination'), item['destination_port'], item['protocol'], item['action'], request, item['id']) for item in r.get('filterrules', {})]