1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-19 06:50:07 +03:00

Feature #602: Small bugfixes

This commit is contained in:
Carlos Martín 2011-11-29 18:09:19 +01:00
parent 4904cc964b
commit 05e40b5b6f
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ public:
*/
Leases(SqlDB * _db, int _oid, unsigned long _size, unsigned int _mac_prefix):
ObjectSQL(),
oid(_oid), size(_size), n_used(0), db(_db){};
oid(_oid), size(_size), n_used(0), mac_prefix(_mac_prefix), db(_db){};
virtual ~Leases()
{

View File

@ -176,7 +176,7 @@ int RangedLeases::process_template(VirtualNetwork* vn,
vn->remove_template_attribute("NETWORK_SIZE");
// Set the network mask
net_mask = ( 0xFFFFFFFF << host_bits ) & 0xFFFFFFFF;
net_mask = 0xFFFFFFFF << host_bits;
Lease::ip_to_string(net_mask, st_mask);
vn->replace_template_attribute("NETWORK_MASK", st_mask);