mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #3175: fix error bootstraping security group rules
This commit is contained in:
parent
f7d9d69206
commit
c77ccc3663
@ -2803,18 +2803,17 @@ void VirtualMachine::get_security_group_rules(int id, set<int>& secgroups,
|
||||
{
|
||||
set<int>::iterator sg_it;
|
||||
|
||||
SecurityGroup* sgroup;
|
||||
SecurityGroupPool* sgroup_pool = Nebula::instance().get_secgrouppool();
|
||||
|
||||
vector<VectorAttribute*>::iterator rule_it;
|
||||
|
||||
SecurityGroup* sgroup;
|
||||
SecurityGroupPool* sgroup_pool = Nebula::instance().get_secgrouppool();
|
||||
|
||||
vector<VectorAttribute*> sgroup_rules;
|
||||
|
||||
int vnet_id;
|
||||
VirtualNetwork* vnet;
|
||||
VirtualNetworkPool* vnet_pool = Nebula::instance().get_vnpool();
|
||||
|
||||
for (sg_it = secgroups.begin(); sg_it != secgroups.end(); sg_it++)
|
||||
for (sg_it = secgroups.begin(); sg_it != secgroups.end(); sg_it++, sgroup_rules.clear())
|
||||
{
|
||||
sgroup = sgroup_pool->get(*sg_it, true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user