| Relocate Int
deriving (Show)
-data Request = Request RqType IdxNode IdxInstance NameList NameList
+data Request = Request RqType NodeList InstanceList String NameList NameList
deriving (Show)
parseBaseInstance :: String
ridx <- lookupNode kti rname rname
return $ Relocate ridx
other -> fail $ ("Invalid request type '" ++ other ++ "'")
-
- return $ Request rqtype nl il (swapPairs ktn) (swapPairs kti)
+ (map_n, map_i, csf, xtn, xti) <- mergeData (ktn, nl, kti, il)
+ return $ Request rqtype map_n map_i csf xtn xti
formatResponse :: Bool -> String -> [String] -> String
formatResponse success info nodes =