From a111074d6c20039ece4fa40bebb576aaf7cdc81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awek=20Kap=C5=82o=C5=84ski?= Date: Tue, 30 May 2017 21:22:11 +0000 Subject: [PATCH] Add relationship between QosPolicyDefault and QosPolicy This commit adds missing relationship between QosPolicyDefault and QosPolicy db models to make it working with revision plugin when new default Qos policy is created for project. Change-Id: I90e2b91061b9c862883d950525c34b3048d9fd43 Closes-Bug: 1694536 --- neutron/db/qos/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron/db/qos/models.py b/neutron/db/qos/models.py index 3ad1cd06cd9..f279e23182a 100644 --- a/neutron/db/qos/models.py +++ b/neutron/db/qos/models.py @@ -81,6 +81,7 @@ class QosPolicyDefault(model_base.BASEV2, ondelete='CASCADE'), nullable=False) revises_on_change = ('qos_policy',) + qos_policy = sa.orm.relationship(QosPolicy, load_on_pending=True) class QosBandwidthLimitRule(model_base.HasId, model_base.BASEV2):