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:
parent
4904cc964b
commit
05e40b5b6f
@ -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()
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user