mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 03:42:52 +09:00
Feature #3175: Make sec groups start with ID 100
This commit is contained in:
1 parent
73fb50184d
commit
bb7a97209b
1 file changed
+12
-1
@@ -20,7 +20,18 @@
|
||||
|
||||
SecurityGroupPool::SecurityGroupPool(SqlDB * db)
|
||||
:PoolSQL(db, SecurityGroup::table, true, true)
|
||||
{}
|
||||
{
|
||||
//lastOID is set in PoolSQL::init_cb
|
||||
if (get_lastOID() == -1)
|
||||
{
|
||||
// The first 100 IDs are reserved for system Security Groups.
|
||||
// Regular ones start from ID 100
|
||||
|
||||
set_update_lastOID(99);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
Reference in new issue
Block a user