Safe Haskell | Safe-Infered |
---|
Implementation of the Ganeti Query2 node group queries.
- networkFields :: FieldList Network NoDataRuntime
- fieldsMap :: FieldMap Network NoDataRuntime
- getGroupConnections :: ConfigData -> String -> [(String, String, String, String)]
- getGroupConnection :: String -> NodeGroup -> Maybe (String, String, String, String)
- getNicMode :: PartialNicParams -> String
- getNicLink :: PartialNicParams -> String
- getNicVlan :: PartialNicParams -> String
- getInstances :: ConfigData -> String -> [String]
- instIsConnected :: String -> Instance -> Bool
- getNetworkUuid :: ConfigData -> String -> Maybe String
- getReservations :: Ip4Network -> String -> [Ip4Address]
- getExtReservationsString :: Network -> ResultEntry
Documentation
fieldsMap :: FieldMap Network NoDataRuntimeSource
The group fields map.
getGroupConnections :: ConfigData -> String -> [(String, String, String, String)]Source
getGroupConnection :: String -> NodeGroup -> Maybe (String, String, String, String)Source
Given a network's UUID and a node group, this function assembles
a tuple of the group's name, the mode and the link by which the
network is connected to the group. Returns Nothing
if the network
is not connected to the group.
getNicMode :: PartialNicParams -> StringSource
getNicLink :: PartialNicParams -> StringSource
getNicVlan :: PartialNicParams -> StringSource
getInstances :: ConfigData -> String -> [String]Source
instIsConnected :: String -> Instance -> BoolSource
Helper function that checks if an instance is linked to the given network.
getNetworkUuid :: ConfigData -> String -> Maybe StringSource
Helper function to look up a network's UUID by its name
getReservations :: Ip4Network -> String -> [Ip4Address]Source