Revision 07ea9bf5

b/src/Ganeti/HTools/Node.hs
40 40
  , setPri
41 41
  , setSec
42 42
  , setMaster
43
  , setNodeTags
43 44
  , setMdsk
44 45
  , setMcpu
45 46
  , setPolicy
......
132 133
                          -- allocations and skipped from score
133 134
                          -- computations
134 135
  , isMaster :: Bool      -- ^ Whether the node is the master node
136
  , nTags    :: [String]  -- ^ The node tags for this node
135 137
  , utilPool :: T.DynUtil -- ^ Total utilisation capacity
136 138
  , utilLoad :: T.DynUtil -- ^ Sum of instance utilisation
137 139
  , pTags    :: TagMap    -- ^ Primary instance exclusion tags and their count
......
238 240
       , pCpu = 0
239 241
       , offline = offline_init
240 242
       , isMaster = False
243
       , nTags = []
241 244
       , xMem = 0
242 245
       , mDsk = T.defReservedDiskRatio
243 246
       , loDsk = mDskToloDsk T.defReservedDiskRatio dsk_t_init
......
284 287
setMaster :: Node -> Bool -> Node
285 288
setMaster t val = t { isMaster = val }
286 289

  
290
-- | Sets the node tags attribute
291
setNodeTags :: Node -> [String] -> Node
292
setNodeTags t val = t { nTags = val }
293

  
287 294
-- | Sets the unnaccounted memory.
288 295
setXmem :: Node -> Int -> Node
289 296
setXmem t val = t { xMem = val }

Also available in: Unified diff