Revision 5c8f186c src/Ganeti/HsConstants.hs

b/src/Ganeti/HsConstants.hs
1339 1339
enforceableTypes :: FrozenSet VType
1340 1340
enforceableTypes = ConstantUtils.mkSet [minBound..]
1341 1341

  
1342
-- | Constant representing that the user does not specify any IP version
1343
ifaceNoIpVersionSpecified :: Int
1344
ifaceNoIpVersionSpecified = 0
1345

  
1346
validSerialSpeeds :: [Int]
1347
validSerialSpeeds =
1348
  [75,
1349
   110,
1350
   300,
1351
   600,
1352
   1200,
1353
   1800,
1354
   2400,
1355
   4800,
1356
   9600,
1357
   14400,
1358
   19200,
1359
   28800,
1360
   38400,
1361
   57600,
1362
   115200,
1363
   230400,
1364
   345600,
1365
   460800]
1366

  
1367
-- * HV parameter names (global namespace)
1368

  
1369
hvAcpi :: String
1370
hvAcpi = "acpi"
1371

  
1372
hvBlockdevPrefix :: String
1373
hvBlockdevPrefix = "blockdev_prefix"
1374

  
1375
hvBootloaderArgs :: String
1376
hvBootloaderArgs = "bootloader_args"
1377

  
1378
hvBootloaderPath :: String
1379
hvBootloaderPath = "bootloader_path"
1380

  
1381
hvBootOrder :: String
1382
hvBootOrder = "boot_order"
1383

  
1384
hvCdromImagePath :: String
1385
hvCdromImagePath = "cdrom_image_path"
1386

  
1387
hvCpuCap :: String
1388
hvCpuCap = "cpu_cap"
1389

  
1390
hvCpuCores :: String
1391
hvCpuCores = "cpu_cores"
1392

  
1393
hvCpuMask :: String
1394
hvCpuMask = "cpu_mask"
1395

  
1396
hvCpuSockets :: String
1397
hvCpuSockets = "cpu_sockets"
1398

  
1399
hvCpuThreads :: String
1400
hvCpuThreads = "cpu_threads"
1401

  
1402
hvCpuType :: String
1403
hvCpuType = "cpu_type"
1404

  
1405
hvCpuWeight :: String
1406
hvCpuWeight = "cpu_weight"
1407

  
1408
hvDeviceModel :: String
1409
hvDeviceModel = "device_model"
1410

  
1411
hvDiskCache :: String
1412
hvDiskCache = "disk_cache"
1413

  
1414
hvDiskType :: String
1415
hvDiskType = "disk_type"
1416

  
1417
hvInitrdPath :: String
1418
hvInitrdPath = "initrd_path"
1419

  
1420
hvInitScript :: String
1421
hvInitScript = "init_script"
1422

  
1423
hvKernelArgs :: String
1424
hvKernelArgs = "kernel_args"
1425

  
1426
hvKernelPath :: String
1427
hvKernelPath = "kernel_path"
1428

  
1429
hvKeymap :: String
1430
hvKeymap = "keymap"
1431

  
1432
hvKvmCdrom2ImagePath :: String
1433
hvKvmCdrom2ImagePath = "cdrom2_image_path"
1434

  
1435
hvKvmCdromDiskType :: String
1436
hvKvmCdromDiskType = "cdrom_disk_type"
1437

  
1438
hvKvmExtra :: String
1439
hvKvmExtra = "kvm_extra"
1440

  
1441
hvKvmFlag :: String
1442
hvKvmFlag = "kvm_flag"
1443

  
1444
hvKvmFloppyImagePath :: String
1445
hvKvmFloppyImagePath = "floppy_image_path"
1446

  
1447
hvKvmMachineVersion :: String
1448
hvKvmMachineVersion = "machine_version"
1449

  
1450
hvKvmPath :: String
1451
hvKvmPath = "kvm_path"
1452

  
1453
hvKvmSpiceAudioCompr :: String
1454
hvKvmSpiceAudioCompr = "spice_playback_compression"
1455

  
1456
hvKvmSpiceBind :: String
1457
hvKvmSpiceBind = "spice_bind"
1458

  
1459
hvKvmSpiceIpVersion :: String
1460
hvKvmSpiceIpVersion = "spice_ip_version"
1461

  
1462
hvKvmSpiceJpegImgCompr :: String
1463
hvKvmSpiceJpegImgCompr = "spice_jpeg_wan_compression"
1464

  
1465
hvKvmSpiceLosslessImgCompr :: String
1466
hvKvmSpiceLosslessImgCompr = "spice_image_compression"
1467

  
1468
hvKvmSpicePasswordFile :: String
1469
hvKvmSpicePasswordFile = "spice_password_file"
1470

  
1471
hvKvmSpiceStreamingVideoDetection :: String
1472
hvKvmSpiceStreamingVideoDetection = "spice_streaming_video"
1473

  
1474
hvKvmSpiceTlsCiphers :: String
1475
hvKvmSpiceTlsCiphers = "spice_tls_ciphers"
1476

  
1477
hvKvmSpiceUseTls :: String
1478
hvKvmSpiceUseTls = "spice_use_tls"
1479

  
1480
hvKvmSpiceUseVdagent :: String
1481
hvKvmSpiceUseVdagent = "spice_use_vdagent"
1482

  
1483
hvKvmSpiceZlibGlzImgCompr :: String
1484
hvKvmSpiceZlibGlzImgCompr = "spice_zlib_glz_wan_compression"
1485

  
1486
hvKvmUseChroot :: String
1487
hvKvmUseChroot = "use_chroot"
1488

  
1489
hvMemPath :: String
1490
hvMemPath = "mem_path"
1491

  
1492
hvMigrationBandwidth :: String
1493
hvMigrationBandwidth = "migration_bandwidth"
1494

  
1495
hvMigrationDowntime :: String
1496
hvMigrationDowntime = "migration_downtime"
1497

  
1498
hvMigrationMode :: String
1499
hvMigrationMode = "migration_mode"
1500

  
1501
hvMigrationPort :: String
1502
hvMigrationPort = "migration_port"
1503

  
1504
hvNicType :: String
1505
hvNicType = "nic_type"
1506

  
1507
hvPae :: String
1508
hvPae = "pae"
1509

  
1510
hvPassthrough :: String
1511
hvPassthrough = "pci_pass"
1512

  
1513
hvRebootBehavior :: String
1514
hvRebootBehavior = "reboot_behavior"
1515

  
1516
hvRootPath :: String
1517
hvRootPath = "root_path"
1518

  
1519
hvSecurityDomain :: String
1520
hvSecurityDomain = "security_domain"
1521

  
1522
hvSecurityModel :: String
1523
hvSecurityModel = "security_model"
1524

  
1525
hvSerialConsole :: String
1526
hvSerialConsole = "serial_console"
1527

  
1528
hvSerialSpeed :: String
1529
hvSerialSpeed = "serial_speed"
1530

  
1531
hvSoundhw :: String
1532
hvSoundhw = "soundhw"
1533

  
1534
hvUsbDevices :: String
1535
hvUsbDevices = "usb_devices"
1536

  
1537
hvUsbMouse :: String
1538
hvUsbMouse = "usb_mouse"
1539

  
1540
hvUseBootloader :: String
1541
hvUseBootloader = "use_bootloader"
1542

  
1543
hvUseLocaltime :: String
1544
hvUseLocaltime = "use_localtime"
1545

  
1546
hvVga :: String
1547
hvVga = "vga"
1548

  
1549
hvVhostNet :: String
1550
hvVhostNet = "vhost_net"
1551

  
1552
hvVifScript :: String
1553
hvVifScript = "vif_script"
1554

  
1555
hvVifType :: String
1556
hvVifType = "vif_type"
1557

  
1558
hvViridian :: String
1559
hvViridian = "viridian"
1560

  
1561
hvVncBindAddress :: String
1562
hvVncBindAddress = "vnc_bind_address"
1563

  
1564
hvVncPasswordFile :: String
1565
hvVncPasswordFile = "vnc_password_file"
1566

  
1567
hvVncTls :: String
1568
hvVncTls = "vnc_tls"
1569

  
1570
hvVncX509 :: String
1571
hvVncX509 = "vnc_x509_path"
1572

  
1573
hvVncX509Verify :: String
1574
hvVncX509Verify = "vnc_x509_verify"
1575

  
1576
hvVnetHdr :: String
1577
hvVnetHdr = "vnet_hdr"
1578

  
1579
hvXenCmd :: String
1580
hvXenCmd = "xen_cmd"
1581

  
1582
hvXenCpuid :: String
1583
hvXenCpuid = "cpuid"
1584

  
1585
hvsParameterTitles :: Map String String
1586
hvsParameterTitles =
1587
  Map.fromList
1588
  [(hvAcpi, "ACPI"),
1589
   (hvBootOrder, "Boot_order"),
1590
   (hvCdromImagePath, "CDROM_image_path"),
1591
   (hvCpuType, "cpu_type"),
1592
   (hvDiskType, "Disk_type"),
1593
   (hvInitrdPath, "Initrd_path"),
1594
   (hvKernelPath, "Kernel_path"),
1595
   (hvNicType, "NIC_type"),
1596
   (hvPae, "PAE"),
1597
   (hvPassthrough, "pci_pass"),
1598
   (hvVncBindAddress, "VNC_bind_address")]
1599

  
1342 1600
-- | Instance specs
1343 1601
--
1344 1602
-- FIXME: these should be associated with 'Ganeti.HTools.Types.ISpec'

Also available in: Unified diff