Merge "Remove deprectaion warnings for db models"

This commit is contained in:
Jenkins 2016-09-14 08:07:37 +00:00 committed by Gerrit Code Review
commit c7f26cb926
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ import sqlalchemy as sa
from sqlalchemy import orm
from neutron.db import db_base_plugin_v2
from neutron.db import securitygroups_db
from neutron.db.models import securitygroup
from neutron.extensions import securitygroup as ext_sg
from neutron_lib.api import validators
from neutron_lib import exceptions as nexception
@ -46,7 +46,7 @@ class NsxExtendedSecurityGroupRuleProperties(model_base.BASEV2):
local_ip_prefix = sa.Column(sa.String(255), nullable=False)
rule = orm.relationship(
securitygroups_db.SecurityGroupRule,
securitygroup.SecurityGroupRule,
backref=orm.backref('ext_properties', lazy='joined',
uselist=False, cascade='delete'))

View File

@ -25,7 +25,7 @@ from oslo_db.sqlalchemy import models
from vmware_nsx.common import nsxv_constants
class NsxvRouterBinding(model_base.BASEV2, models_v2.HasStatusDescription,
class NsxvRouterBinding(model_base.BASEV2, model_base.HasStatusDescription,
models.TimestampMixin):
"""Represents the mapping between neutron router and vShield Edge."""