'Lists all egress Firewall Rules
:rtype: ``list`` of :class:`CloudStackEgressFirewallRule`'

def ex_list_egress_firewall_rules(self):

    rules = []
    result = self._sync_request(command='listEgressFirewallRules', method='GET')
    for rule in result['firewallrule']:
        rules.append(CloudStackEgressFirewallRule(rule['id'], rule['networkid'], rule['cidrlist'], rule['protocol'], rule.get('icmpcode'), rule.get('icmptype'), rule.get('startport'), rule.get('endport')))
    return rules
