Jump to: navigation, search

SecurityGroup Object

SecurityGroup Object

convert SecurityGroup to objects

WorkFlaow

SecurityGroup.png

With Object Model, SecurityGroup and SecurityGroupRule will be two individual identities. Only SecurityGroupRule knows who its parent_group is. But sometimes we only have SecurityGroup and need to know its rules. So we need to search in dB to find its rules. This works fine with nova SecurityGroup. But it doesn’t work with Neutron SecurityGroup, because they are not in Nova dB. Right now I will pass neutron securityGroup back as Dict, and API will behavior varies depends on the SecurityGroup they received.

Problem

So the problem is do we have to convert the neutron group to object model as well? If so, then where to store the extra information, otherwise we need to modify the design of Security Group Object, like combine them into one object?

Detail

https://review.openstack.org/#/c/59655/