ganeti

Safe HaskellSafe-Infered

Ganeti.Query.Network

Description

Implementation of the Ganeti Query2 node group queries.

Synopsis

Documentation

data Runtime Source

There is no actual runtime.

Constructors

Runtime 

fieldsMap :: FieldMap Network RuntimeSource

The group fields map.

getGroupConnections :: ConfigData -> String -> [(String, String, String)]Source

getGroupConnection :: String -> NodeGroup -> Maybe (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.

getInstances :: ConfigData -> String -> [String]Source

instIsConnected :: ConfigData -> 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

collectLiveData :: Bool -> ConfigData -> [Network] -> IO [(Network, Runtime)]Source

Dummy function for collecting live data (which networks don't have).