docs: def _format_rules_for_eos(self, rules):
          """Format list of rules for EOS and sort into ingress/egress rules"""
          in_rules = []
          eg_rules = []
          for rule in rules:
              protocol = rule.get('protocol')
              cidr = rule.get('remote_ip_prefix', 'any')
              min_port = rule.get('port_range_min')
              max_port = rule.get('port_range_max')
              direction = rule.get('direction')
              ethertype = rule.get('ethertype')
              if not self._supported_rule(protocol, ethertype):
                  continue
              formatted_rule = self._format_rule(protocol, cidr, min_port,
                                                 max_port, direction)
              if rule['direction'] == n_const.INGRESS_DIRECTION:
                  in_rules.append(formatted_rule)
              elif rule['direction'] == n_const.EGRESS_DIRECTION:
                  eg_rules.append(formatted_rule)
          return in_rules, eg_rules