docs: def filter_inactive_ports(query):
      """Filter ports that aren't in active status """
      port_model = models_v2.Port
      query = (query
               .filter(port_model.status == n_const.PORT_STATUS_ACTIVE))
      return query