Revision b8576ea1 src/Ganeti/HsConstants.hs
b/src/Ganeti/HsConstants.hs | ||
---|---|---|
2253 | 2253 |
vncDefaultBindAddress :: String |
2254 | 2254 |
vncDefaultBindAddress = ip4AddressAny |
2255 | 2255 |
|
2256 |
-- * NIC types |
|
2257 |
|
|
2258 |
htNicE1000 :: String |
|
2259 |
htNicE1000 = "e1000" |
|
2260 |
|
|
2261 |
htNicI82551 :: String |
|
2262 |
htNicI82551 = "i82551" |
|
2263 |
|
|
2264 |
htNicI8259er :: String |
|
2265 |
htNicI8259er = "i82559er" |
|
2266 |
|
|
2267 |
htNicI85557b :: String |
|
2268 |
htNicI85557b = "i82557b" |
|
2269 |
|
|
2270 |
htNicNe2kIsa :: String |
|
2271 |
htNicNe2kIsa = "ne2k_isa" |
|
2272 |
|
|
2273 |
htNicNe2kPci :: String |
|
2274 |
htNicNe2kPci = "ne2k_pci" |
|
2275 |
|
|
2276 |
htNicParavirtual :: String |
|
2277 |
htNicParavirtual = "paravirtual" |
|
2278 |
|
|
2279 |
htNicPcnet :: String |
|
2280 |
htNicPcnet = "pcnet" |
|
2281 |
|
|
2282 |
htNicRtl8139 :: String |
|
2283 |
htNicRtl8139 = "rtl8139" |
|
2284 |
|
|
2285 |
htHvmValidNicTypes :: FrozenSet String |
|
2286 |
htHvmValidNicTypes = |
|
2287 |
ConstantUtils.mkSet [htNicE1000, |
|
2288 |
htNicNe2kIsa, |
|
2289 |
htNicNe2kPci, |
|
2290 |
htNicParavirtual, |
|
2291 |
htNicRtl8139] |
|
2292 |
|
|
2293 |
htKvmValidNicTypes :: FrozenSet String |
|
2294 |
htKvmValidNicTypes = |
|
2295 |
ConstantUtils.mkSet [htNicE1000, |
|
2296 |
htNicI82551, |
|
2297 |
htNicI8259er, |
|
2298 |
htNicI85557b, |
|
2299 |
htNicNe2kIsa, |
|
2300 |
htNicNe2kPci, |
|
2301 |
htNicParavirtual, |
|
2302 |
htNicPcnet, |
|
2303 |
htNicRtl8139] |
|
2304 |
|
|
2305 |
-- * Vif types |
|
2306 |
|
|
2307 |
-- | Default vif type in xen-hvm |
|
2308 |
htHvmVifIoemu :: String |
|
2309 |
htHvmVifIoemu = "ioemu" |
|
2310 |
|
|
2311 |
htHvmVifVif :: String |
|
2312 |
htHvmVifVif = "vif" |
|
2313 |
|
|
2314 |
htHvmValidVifTypes :: FrozenSet String |
|
2315 |
htHvmValidVifTypes = ConstantUtils.mkSet [htHvmVifIoemu, htHvmVifVif] |
|
2316 |
|
|
2317 |
-- * Disk types |
|
2318 |
|
|
2319 |
htDiskIde :: String |
|
2320 |
htDiskIde = "ide" |
|
2321 |
|
|
2322 |
htDiskIoemu :: String |
|
2323 |
htDiskIoemu = "ioemu" |
|
2324 |
|
|
2325 |
htDiskMtd :: String |
|
2326 |
htDiskMtd = "mtd" |
|
2327 |
|
|
2328 |
htDiskParavirtual :: String |
|
2329 |
htDiskParavirtual = "paravirtual" |
|
2330 |
|
|
2331 |
htDiskPflash :: String |
|
2332 |
htDiskPflash = "pflash" |
|
2333 |
|
|
2334 |
htDiskScsi :: String |
|
2335 |
htDiskScsi = "scsi" |
|
2336 |
|
|
2337 |
htDiskSd :: String |
|
2338 |
htDiskSd = "sd" |
|
2339 |
|
|
2340 |
htHvmValidDiskTypes :: FrozenSet String |
|
2341 |
htHvmValidDiskTypes = ConstantUtils.mkSet [htDiskIoemu, htDiskParavirtual] |
|
2342 |
|
|
2343 |
htKvmValidDiskTypes :: FrozenSet String |
|
2344 |
htKvmValidDiskTypes = |
|
2345 |
ConstantUtils.mkSet [htDiskIde, |
|
2346 |
htDiskMtd, |
|
2347 |
htDiskParavirtual, |
|
2348 |
htDiskPflash, |
|
2349 |
htDiskScsi, |
|
2350 |
htDiskSd] |
|
2351 |
|
|
2352 |
htCacheDefault :: String |
|
2353 |
htCacheDefault = "default" |
|
2354 |
|
|
2355 |
htCacheNone :: String |
|
2356 |
htCacheNone = "none" |
|
2357 |
|
|
2358 |
htCacheWback :: String |
|
2359 |
htCacheWback = "writeback" |
|
2360 |
|
|
2361 |
htCacheWthrough :: String |
|
2362 |
htCacheWthrough = "writethrough" |
|
2363 |
|
|
2364 |
htValidCacheTypes :: FrozenSet String |
|
2365 |
htValidCacheTypes = |
|
2366 |
ConstantUtils.mkSet [htCacheDefault, |
|
2367 |
htCacheNone, |
|
2368 |
htCacheWback, |
|
2369 |
htCacheWthrough] |
|
2370 |
|
|
2371 |
-- * Mouse types |
|
2372 |
|
|
2373 |
htMouseMouse :: String |
|
2374 |
htMouseMouse = "mouse" |
|
2375 |
|
|
2376 |
htMouseTablet :: String |
|
2377 |
htMouseTablet = "tablet" |
|
2378 |
|
|
2379 |
htKvmValidMouseTypes :: FrozenSet String |
|
2380 |
htKvmValidMouseTypes = ConstantUtils.mkSet [htMouseMouse, htMouseTablet] |
|
2381 |
|
|
2382 |
-- * Boot order |
|
2383 |
|
|
2384 |
htBoCdrom :: String |
|
2385 |
htBoCdrom = "cdrom" |
|
2386 |
|
|
2387 |
htBoDisk :: String |
|
2388 |
htBoDisk = "disk" |
|
2389 |
|
|
2390 |
htBoFloppy :: String |
|
2391 |
htBoFloppy = "floppy" |
|
2392 |
|
|
2393 |
htBoNetwork :: String |
|
2394 |
htBoNetwork = "network" |
|
2395 |
|
|
2396 |
htKvmValidBoTypes :: FrozenSet String |
|
2397 |
htKvmValidBoTypes = |
|
2398 |
ConstantUtils.mkSet [htBoCdrom, htBoDisk, htBoFloppy, htBoNetwork] |
|
2399 |
|
|
2400 |
-- * SPICE lossless image compression options |
|
2401 |
|
|
2402 |
htKvmSpiceLosslessImgComprAutoGlz :: String |
|
2403 |
htKvmSpiceLosslessImgComprAutoGlz = "auto_glz" |
|
2404 |
|
|
2405 |
htKvmSpiceLosslessImgComprAutoLz :: String |
|
2406 |
htKvmSpiceLosslessImgComprAutoLz = "auto_lz" |
|
2407 |
|
|
2408 |
htKvmSpiceLosslessImgComprGlz :: String |
|
2409 |
htKvmSpiceLosslessImgComprGlz = "glz" |
|
2410 |
|
|
2411 |
htKvmSpiceLosslessImgComprLz :: String |
|
2412 |
htKvmSpiceLosslessImgComprLz = "lz" |
|
2413 |
|
|
2414 |
htKvmSpiceLosslessImgComprOff :: String |
|
2415 |
htKvmSpiceLosslessImgComprOff = "off" |
|
2416 |
|
|
2417 |
htKvmSpiceLosslessImgComprQuic :: String |
|
2418 |
htKvmSpiceLosslessImgComprQuic = "quic" |
|
2419 |
|
|
2420 |
htKvmSpiceValidLosslessImgComprOptions :: FrozenSet String |
|
2421 |
htKvmSpiceValidLosslessImgComprOptions = |
|
2422 |
ConstantUtils.mkSet [htKvmSpiceLosslessImgComprAutoGlz, |
|
2423 |
htKvmSpiceLosslessImgComprAutoLz, |
|
2424 |
htKvmSpiceLosslessImgComprGlz, |
|
2425 |
htKvmSpiceLosslessImgComprLz, |
|
2426 |
htKvmSpiceLosslessImgComprOff, |
|
2427 |
htKvmSpiceLosslessImgComprQuic] |
|
2428 |
|
|
2429 |
htKvmSpiceLossyImgComprAlways :: String |
|
2430 |
htKvmSpiceLossyImgComprAlways = "always" |
|
2431 |
|
|
2432 |
htKvmSpiceLossyImgComprAuto :: String |
|
2433 |
htKvmSpiceLossyImgComprAuto = "auto" |
|
2434 |
|
|
2435 |
htKvmSpiceLossyImgComprNever :: String |
|
2436 |
htKvmSpiceLossyImgComprNever = "never" |
|
2437 |
|
|
2438 |
htKvmSpiceValidLossyImgComprOptions :: FrozenSet String |
|
2439 |
htKvmSpiceValidLossyImgComprOptions = |
|
2440 |
ConstantUtils.mkSet [htKvmSpiceLossyImgComprAlways, |
|
2441 |
htKvmSpiceLossyImgComprAuto, |
|
2442 |
htKvmSpiceLossyImgComprNever] |
|
2443 |
|
|
2444 |
-- * SPICE video stream detection |
|
2445 |
|
|
2446 |
htKvmSpiceVideoStreamDetectionAll :: String |
|
2447 |
htKvmSpiceVideoStreamDetectionAll = "all" |
|
2448 |
|
|
2449 |
htKvmSpiceVideoStreamDetectionFilter :: String |
|
2450 |
htKvmSpiceVideoStreamDetectionFilter = "filter" |
|
2451 |
|
|
2452 |
htKvmSpiceVideoStreamDetectionOff :: String |
|
2453 |
htKvmSpiceVideoStreamDetectionOff = "off" |
|
2454 |
|
|
2455 |
htKvmSpiceValidVideoStreamDetectionOptions :: FrozenSet String |
|
2456 |
htKvmSpiceValidVideoStreamDetectionOptions = |
|
2457 |
ConstantUtils.mkSet [htKvmSpiceVideoStreamDetectionAll, |
|
2458 |
htKvmSpiceVideoStreamDetectionFilter, |
|
2459 |
htKvmSpiceVideoStreamDetectionOff] |
|
2460 |
|
|
2461 |
-- * Security models |
|
2462 |
|
|
2463 |
htSmNone :: String |
|
2464 |
htSmNone = "none" |
|
2465 |
|
|
2466 |
htSmPool :: String |
|
2467 |
htSmPool = "pool" |
|
2468 |
|
|
2469 |
htSmUser :: String |
|
2470 |
htSmUser = "user" |
|
2471 |
|
|
2472 |
htKvmValidSmTypes :: FrozenSet String |
|
2473 |
htKvmValidSmTypes = ConstantUtils.mkSet [htSmNone, htSmPool, htSmUser] |
|
2474 |
|
|
2475 |
-- * Kvm flag values |
|
2476 |
|
|
2477 |
htKvmDisabled :: String |
|
2478 |
htKvmDisabled = "disabled" |
|
2479 |
|
|
2480 |
htKvmEnabled :: String |
|
2481 |
htKvmEnabled = "enabled" |
|
2482 |
|
|
2483 |
htKvmFlagValues :: FrozenSet String |
|
2484 |
htKvmFlagValues = ConstantUtils.mkSet [htKvmDisabled, htKvmEnabled] |
|
2485 |
|
|
2256 | 2486 |
-- * Migration type |
2257 | 2487 |
|
2258 | 2488 |
htMigrationLive :: String |
Also available in: Unified diff