Commit 6b0d45b7 authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Hs2Py constants: UID pool



Add UID pool related constants to the Haskell to Python constant generation.
Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
parent 2f314077
......@@ -1479,9 +1479,8 @@ CONFD_CLIENT_EXPIRE_TIMEOUT = _constants.CONFD_CLIENT_EXPIRE_TIMEOUT
MAX_UDP_DATA_SIZE = _constants.MAX_UDP_DATA_SIZE
# User-id pool minimum/maximum acceptable user-ids.
UIDPOOL_UID_MIN = 0
UIDPOOL_UID_MAX = 2 ** 32 - 1 # Assuming 32 bit user-ids
UIDPOOL_UID_MIN = _constants.UIDPOOL_UID_MIN
UIDPOOL_UID_MAX = _constants.UIDPOOL_UID_MAX
# Name or path of the pgrep command
PGREP = "pgrep"
......
{-# OPTIONS -fno-warn-type-defaults #-}
{-| HsConstants contains the Haskell constants
This is a transitional module complementary to 'Ganeti.Constants'. It
......@@ -3622,6 +3623,15 @@ confdClientExpireTimeout = 10
maxUdpDataSize :: Int
maxUdpDataSize = 61440
-- * User-id pool minimum/maximum acceptable user-ids
uidpoolUidMin :: Int
uidpoolUidMin = 0
-- | Assuming 32 bit user-ids
uidpoolUidMax :: Integer
uidpoolUidMax = 2 ^ 32 - 1
-- * Possible values for NodeGroup.alloc_policy
allocPolicyLastResort :: String
......
......@@ -42,6 +42,7 @@ import Ganeti.THH
instance PyValue Bool
instance PyValue Int
instance PyValue Integer
instance PyValue Double
instance PyValue Char
......
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