Commit ee483117 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Add an object describing the master network parameters



This will be used in the RPC call to the node daemon asking
it to set up the master IP address.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent ba94617f
......@@ -90,6 +90,7 @@ module Ganeti.Objects
, readIp4Address
, nextIp4Address
, IAllocatorParams
, MasterNetworkParameters(..)
) where
import Control.Applicative
......@@ -766,3 +767,14 @@ instance SerialNoObject ConfigData where
instance TimeStampObject ConfigData where
cTimeOf = configCtime
mTimeOf = configMtime
-- * Master network parameters
$(buildObject "MasterNetworkParameters" "masterNetworkParameters"
[ simpleField "uuid" [t| String |]
, simpleField "ip" [t| String |]
, simpleField "netmask" [t| Int |]
, simpleField "netdev" [t| String |]
, simpleField "ip_family" [t| IpFamily |]
])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment