docs: def get_rules_table(rules):
      """Helper to format the rules into a table.
  
      :param list rules: A list containing the rules of the firewall
      :returns: a formatted table of the firewall rules
      """
      table = formatting.Table(['#', 'action', 'protocol', 'src_ip', 'src_mask',
                                'dest', 'dest_mask'])
      table.sortby = '#'
      for rule in rules:
          table.add_row([
              rule['orderValue'],
              rule['action'],
              rule['protocol'],
              rule['sourceIpAddress'],
              utils.lookup(rule, 'sourceIpSubnetMask'),
              '%s:%s-%s' % (rule['destinationIpAddress'],
                            rule['destinationPortRangeStart'],
                            rule['destinationPortRangeEnd']),
              utils.lookup(rule, 'destinationIpSubnetMask')])
      return table