Revision 7d421386 htools/Ganeti/OpParams.hs
b/htools/Ganeti/OpParams.hs | ||
---|---|---|
63 | 63 |
, pGroupName |
64 | 64 |
, pMigrationMode |
65 | 65 |
, pMigrationLive |
66 |
, pMigrationCleanup |
|
66 | 67 |
, pForceVariant |
67 | 68 |
, pWaitForSync |
68 | 69 |
, pWaitForSyncFalse |
... | ... | |
189 | 190 |
, pX509DestCA |
190 | 191 |
, pTagSearchPattern |
191 | 192 |
, pRestrictedCommand |
193 |
, pReplaceDisksMode |
|
194 |
, pReplaceDisksList |
|
195 |
, pAllowFailover |
|
196 |
, pDelayDuration |
|
197 |
, pDelayOnMaster |
|
198 |
, pDelayOnNodes |
|
192 | 199 |
, pDelayRepeat |
193 | 200 |
, pIAllocatorDirection |
194 | 201 |
, pIAllocatorMode |
... | ... | |
560 | 567 |
pMigrationLive = |
561 | 568 |
renameField "OldLiveMode" . optionalField $ booleanField "live" |
562 | 569 |
|
570 |
-- | Migration cleanup parameter. |
|
571 |
pMigrationCleanup :: Field |
|
572 |
pMigrationCleanup = renameField "MigrationCleanup" $ defaultFalse "cleanup" |
|
573 |
|
|
563 | 574 |
-- | Whether to force an unknown OS variant. |
564 | 575 |
pForceVariant :: Field |
565 | 576 |
pForceVariant = defaultFalse "force_variant" |
... | ... | |
1161 | 1172 |
renameField "RestrictedCommand" $ |
1162 | 1173 |
simpleField "command" [t| NonEmptyString |] |
1163 | 1174 |
|
1175 |
-- | Replace disks mode. |
|
1176 |
pReplaceDisksMode :: Field |
|
1177 |
pReplaceDisksMode = |
|
1178 |
renameField "ReplaceDisksMode" $ simpleField "mode" [t| ReplaceDisksMode |] |
|
1179 |
|
|
1180 |
-- | List of disk indices. |
|
1181 |
pReplaceDisksList :: Field |
|
1182 |
pReplaceDisksList = |
|
1183 |
renameField "ReplaceDisksList" $ simpleField "disks" [t| [DiskIndex] |] |
|
1184 |
|
|
1185 |
-- | Whether do allow failover in migrations. |
|
1186 |
pAllowFailover :: Field |
|
1187 |
pAllowFailover = defaultFalse "allow_failover" |
|
1188 |
|
|
1164 | 1189 |
-- * Test opcode parameters |
1165 | 1190 |
|
1191 |
-- | Duration parameter for 'OpTestDelay'. |
|
1192 |
pDelayDuration :: Field |
|
1193 |
pDelayDuration = |
|
1194 |
renameField "DelayDuration "$ simpleField "duration" [t| Double |] |
|
1195 |
|
|
1196 |
-- | on_master field for 'OpTestDelay'. |
|
1197 |
pDelayOnMaster :: Field |
|
1198 |
pDelayOnMaster = renameField "DelayOnMaster" $ defaultTrue "on_master" |
|
1199 |
|
|
1200 |
-- | on_nodes field for 'OpTestDelay'. |
|
1201 |
pDelayOnNodes :: Field |
|
1202 |
pDelayOnNodes = |
|
1203 |
renameField "DelayOnNodes" . |
|
1204 |
defaultField [| [] |] $ |
|
1205 |
simpleField "on_nodes" [t| [NonEmptyString] |] |
|
1206 |
|
|
1166 | 1207 |
-- | Repeat parameter for OpTestDelay. |
1167 | 1208 |
pDelayRepeat :: Field |
1168 | 1209 |
pDelayRepeat = |
Also available in: Unified diff