gcpdiag/lint/gce/bp_ext_2024_002_calculate_vm_iops_throughput.py [286:341]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          elif vm_family == 't':
            # Logic to fetch details for T2 family type
            if vm.machine_type().split('-')[0].upper() in ['T2D', 'T2A']:
              next_hop = 'VM vCPU count'
              if vm.machine_type().split('-')[0].upper() == 'T2D':
                # T2D Family
                if disktype == 'pd-standard':
                  if cpu_count == 1:
                    next_hop_val = '1'
                  elif cpu_count in range(2, 8):
                    next_hop_val = '2-7'
                  elif cpu_count in range(8, 16):
                    next_hop_val = '8-15'
                  elif cpu_count > 15:
                    next_hop_val = '16 or more'
                else:
                  if cpu_count == 1:
                    next_hop_val = '1'
                  elif cpu_count in range(2, 8):
                    next_hop_val = '2-7'
                  elif cpu_count in range(8, 16):
                    next_hop_val = '8-15'
                  elif cpu_count in range(16, 32):
                    next_hop_val = '16-31'
                  elif cpu_count > 31:
                    next_hop_val = '32-60'
              else:
                # T2A Family
                if disktype == 'pd-standard':
                  if cpu_count == 1:
                    next_hop_val = '1'
                  elif cpu_count in range(2, 4):
                    next_hop_val = '2-3'
                  elif cpu_count in range(4, 8):
                    next_hop_val = '4-7'
                  elif cpu_count in range(8, 16):
                    next_hop_val = '8-15'
                  elif cpu_count > 15:
                    next_hop_val = '16 or more'
                else:
                  if cpu_count == 1:
                    next_hop_val = '1'
                  elif cpu_count in range(2, 8):
                    next_hop_val = '2-7'
                  elif cpu_count in range(8, 16):
                    next_hop_val = '8-15'
                  elif cpu_count in range(16, 32):
                    next_hop_val = '16-31'
                  elif cpu_count in range(32, 48):
                    next_hop_val = '32-47'
                  elif cpu_count > 47:
                    next_hop_val = '48'

              search_str = vm.machine_type().split('-')[0].upper() + ' VMs'

              if disktype == 'pd-extreme':
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



gcpdiag/runbook/gce/vm_performance.py [776:831]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        elif vm_family == 't':
          # Logic to fetch details for T2 family type
          if vm.machine_type().split('-')[0].upper() in ['T2D', 'T2A']:
            next_hop = 'VM vCPU count'
            if vm.machine_type().split('-')[0].upper() == 'T2D':
              # T2D Family
              if disktype == 'pd-standard':
                if cpu_count == 1:
                  next_hop_val = '1'
                elif cpu_count in range(2, 8):
                  next_hop_val = '2-7'
                elif cpu_count in range(8, 16):
                  next_hop_val = '8-15'
                elif cpu_count > 15:
                  next_hop_val = '16 or more'
              else:
                if cpu_count == 1:
                  next_hop_val = '1'
                elif cpu_count in range(2, 8):
                  next_hop_val = '2-7'
                elif cpu_count in range(8, 16):
                  next_hop_val = '8-15'
                elif cpu_count in range(16, 32):
                  next_hop_val = '16-31'
                elif cpu_count > 31:
                  next_hop_val = '32-60'
            else:
              # T2A Family
              if disktype == 'pd-standard':
                if cpu_count == 1:
                  next_hop_val = '1'
                elif cpu_count in range(2, 4):
                  next_hop_val = '2-3'
                elif cpu_count in range(4, 8):
                  next_hop_val = '4-7'
                elif cpu_count in range(8, 16):
                  next_hop_val = '8-15'
                elif cpu_count > 15:
                  next_hop_val = '16 or more'
              else:
                if cpu_count == 1:
                  next_hop_val = '1'
                elif cpu_count in range(2, 8):
                  next_hop_val = '2-7'
                elif cpu_count in range(8, 16):
                  next_hop_val = '8-15'
                elif cpu_count in range(16, 32):
                  next_hop_val = '16-31'
                elif cpu_count in range(32, 48):
                  next_hop_val = '32-47'
                elif cpu_count > 47:
                  next_hop_val = '48'

            search_str = vm.machine_type().split('-')[0].upper() + ' VMs'

            if disktype == 'pd-extreme':
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



