code: def _extract_ports(port_string):
      
      _ports = str(port_string)
      if '-' in _ports:
          start, end = _ports.split('-')
          return {'min_port': start, 'max_port': end}
      return {'min_port': _ports, 'max_port': _ports}
docs: Return a dict for translated_value based on a string or int
      value.
      
      Value could be 80, or '80' or '80-90'.
      
      Will be returned as {'min_port': 80, 'max_port': 80} or 
      {'min_port': 80, 'max_port': 90}
      
      :rtype: dict