code: def cli(env, network, quantity, vlan_id, ipv6, test):
      
  
      mgr = SoftLayer.NetworkManager(env.client)
  
      if not (test or env.skip_confirmations):
          if not formatting.confirm("This action will incur charges on your "
                                    "account. Continue?"):
              raise exceptions.CLIAbort('Cancelling order.')
  
      version = 4
      if ipv6:
          version = 6
  
      try:
          result = mgr.add_subnet(network, quantity=quantity, vlan_id=vlan_id, version=version, test_order=test)
      except SoftLayer.SoftLayerAPIError:
          raise exceptions.CLIAbort('There is no price id for {} {} ipv{}'.format(quantity, network, version))
  
      table = formatting.Table(['Item', 'cost'])
      table.align['Item'] = 'r'
      table.align['cost'] = 'r'
  
      total = 0.0
      if 'prices' in result:
          for price in result['prices']:
              total += float(price.get('recurringFee', 0.0))
              rate = "%.2f" % float(price['recurringFee'])
  
              table.add_row([price['item']['description'], rate])
  
      table.add_row(['Total monthly cost', "%.2f" % total])
      env.fout(table)
docs: Add a new subnet to your account. Valid quantities vary by type.
  
      \b
      Type    - Valid Quantities (IPv4)
      public  - 4, 8, 16, 32
      private - 4, 8, 16, 32, 64
  
      \b
      Type    - Valid Quantities (IPv6)
      public  - 64