

def _format_security_group(self, context, group):
    security_group = {
        
    }
    security_group['id'] = group.id
    security_group['description'] = group.description
    security_group['name'] = group.name
    security_group['tenant_id'] = group.project_id
    security_group['rules'] = []
    for rule in group.rules:
        security_group['rules'] += [self._format_security_group_rule(context, rule)]
    return security_group

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/contrib/security_groups.py SecurityGroupController._format_security_group/original