docs: def verify_ports(port_list):
      """
      ports should be of the format
      <int:port_number>/<str:protocol>
      where protocol is either tcp or udp
  
      :param port_list: <list>
      :return: <bool>
      """
      result = True  # empty list is ok
      for item in port_list:
          try:
              (port, protocol) = item.split(PORT_SEPARATOR)
              port_num = int(port)
          except ValueError:
              result = False
              break
          result &= protocol in ALLOWED_PROTOCOLS
          result &= port == str(port_num)
      return result