code: def port_range_expand(portrange):
      
      if not portrange or '-' not in portrange:
          LOGGER.info("Invalid port range format")
          return None
      port_list = list()
      for single_port in range(int(portrange[:portrange.index('-')]),
                               int(portrange[portrange.index('-') + 1:]) + 1):
          port_list.append(single_port)
      return port_list
docs: Receive a port range and expands it in individual ports.
  
      @input Port range.
      e.g. "4-8"
  
      @return List of integers.
      e.g. [4, 5, 6, 7, 8]