Revision 1fe412bb

b/htools/Ganeti/HTools/Loader.hs
35 35
    , lookupGroup
36 36
    , commonSuffix
37 37
    , RelocMode(..)
38
    , EvacMode(..)
38 39
    , RqType(..)
39 40
    , Request(..)
40 41
    , ClusterData(..)
......
78 79
                                     -- secondary node
79 80
    | Evacuate [Ndx]                 -- ^ Evacuate nodes
80 81
    | MultiReloc [Idx] RelocMode     -- ^ Multi-relocate mode
82
    | NodeEvacuate [Idx] EvacMode    -- ^ node-evacuate mode
81 83
    deriving (Show, Read)
82 84

  
83 85
-- | A complete request, as received from Ganeti.
b/htools/Ganeti/HTools/Types.hs
59 59
    , OpResult(..)
60 60
    , connTimeout
61 61
    , queryTimeout
62
    , EvacMode(..)
62 63
    ) where
63 64

  
64 65
import qualified Data.Map as M
......
279 280
              name = nameOf e
280 281
    -- | Updates the index of the element
281 282
    setIdx  :: a -> Int -> a
283

  
284
-- | The iallocator node-evacuate evac_mode type.
285
data EvacMode = ChangePrimary
286
              | ChangeSecondary
287
              | ChangeAll
288
                deriving (Show, Read)
b/htools/hail.hs
76 76
                                    idx reqn exnodes
77 77
       Evacuate exnodes -> Cluster.tryMGEvac gl nl il exnodes
78 78
       MultiReloc _ _ -> fail "multi-reloc not handled"
79
       NodeEvacuate _ _ -> fail "node-evacuate not handled"
79 80

  
80 81
-- | Reads the request from the data file(s)
81 82
readRequest :: Options -> [String] -> IO Request

Also available in: Unified diff