From f34d6323977a0dc234ec63c0d1337151c1b2f766 Mon Sep 17 00:00:00 2001 From: Aaron Rosen Date: Thu, 30 Jun 2016 08:16:33 -0700 Subject: [PATCH] Remove tenant_id from parent model This class already mixes in models_v2.HasTenant so we do not need to specify this here. The comment above the code seems to be miss leading as the tenant_id field in the base class is also nullable. Change-Id: I4725a97b746301fdbe7ed49a76e24d933ba1e71c --- vmware_nsx/db/nsx_models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/vmware_nsx/db/nsx_models.py b/vmware_nsx/db/nsx_models.py index eba8e2d1cd..93099b0ef9 100644 --- a/vmware_nsx/db/nsx_models.py +++ b/vmware_nsx/db/nsx_models.py @@ -241,8 +241,6 @@ class NetworkGateway(model_base.BASEV2, models_v2.HasId, models_v2.HasTenant): """Defines the data model for a network gateway.""" name = sa.Column(sa.String(255)) - # Tenant id is nullable for this resource - tenant_id = sa.Column(sa.String(36)) default = sa.Column(sa.Boolean()) devices = orm.relationship(NetworkGatewayDeviceReference, backref='networkgateways',