From 2966be972564261425758b6922ae3ef625ad81a6 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Mon, 29 Aug 2016 23:27:08 -0700 Subject: [PATCH] Admin util: remove deprecation warning SecurityGroup was moved to neutron.db.models.securitygroup Change-Id: Ic02cf91c9fef88b9f552f140bf11b757936f41ae --- .../shell/admin/plugins/nsxv3/resources/securitygroups.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vmware_nsx/shell/admin/plugins/nsxv3/resources/securitygroups.py b/vmware_nsx/shell/admin/plugins/nsxv3/resources/securitygroups.py index 609847dab0..cb913e762d 100644 --- a/vmware_nsx/shell/admin/plugins/nsxv3/resources/securitygroups.py +++ b/vmware_nsx/shell/admin/plugins/nsxv3/resources/securitygroups.py @@ -17,6 +17,7 @@ import logging from neutron.callbacks import registry from neutron import context as neutron_context from neutron.db import common_db_mixin as common_db +from neutron.db.models import securitygroup from neutron.db import securitygroups_db from vmware_nsx.common import utils @@ -83,8 +84,8 @@ class NeutronSecurityGroupApi(securitygroups_db.SecurityGroupDbMixin, def get_security_groups_mappings(self): q = self.context.session.query( - securitygroups_db.SecurityGroup.name, - securitygroups_db.SecurityGroup.id, + securitygroup.SecurityGroup.name, + securitygroup.SecurityGroup.id, nsx_models.NeutronNsxFirewallSectionMapping.nsx_id, nsx_models.NeutronNsxSecurityGroupMapping.nsx_id).join( nsx_models.NeutronNsxFirewallSectionMapping,