* stable-2.7
Fix RAPI to include missing network fields
Add support for querying network timestamps
In the crontab example, look for the correct binary
Fix wrong numbering in UPGRADE documentation
Conflicts:
src/Ganeti/Objects.hs
test/hs/Test/Ganeti/Objects.hs
Resolved by taking both additions.
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
, optionalField $
simpleField "ext_reservations" [t| String |]
]
+ ++ uuidFields
+ ++ timeStampFields
++ serialFields
++ tagsFields)
instance TagsObject Network where
tagsOf = networkTags
+instance UuidObject Network where
+ uuidOf = networkUuid
+
+ instance TimeStampObject Network where
+ cTimeOf = networkCtime
+ mTimeOf = networkMtime
+
-- * NIC definitions
$(buildParam "Nic" "nicp"
gateway6 <- genMaybe genIp6Addr
res <- liftM Just (genBitString $ netmask2NumHosts netmask)
ext_res <- liftM Just (genBitString $ netmask2NumHosts netmask)
+ uuid <- arbitrary
+ ctime <- arbitrary
+ mtime <- arbitrary
- let n = Network name mac_prefix net net6 gateway
- gateway6 res ext_res ctime mtime 0 Set.empty
+ let n = Network name mac_prefix (Ip4Network net netmask) net6 gateway
- gateway6 res ext_res uuid 0 Set.empty
++ gateway6 res ext_res uuid ctime mtime 0 Set.empty
return n
-- | Generate an arbitrary string consisting of '0' and '1' of the given length.