Fixed a bug in Neutron GCE router to run on master and stable/newton
Issue:
- Classes used in gce_router_plugin.py are different on master and
stable/newton branch.
Example:
- In newton branch, we are importing "from neutron.db import l3_db"
and we are using this import as l3_db.Router. But on master branch,
l3_db doesn't have attribute "Router". Hence to solve this, we need
to import "from neutron.db.models import l3".
Reviewed: https:/ /review. openstack. org/481576 /git.openstack. org/cgit/ openstack/ omni/commit/ ?id=ed23220a8dd 42f12071e21a2ce adf95ea56e8719
Committed: https:/
Submitter: Jenkins
Branch: master
commit ed23220a8dd42f1 2071e21a2ceadf9 5ea56e8719
Author: Pratik Shah <email address hidden>
Date: Fri Jul 7 16:30:23 2017 +0530
Fixed a bug in Neutron GCE router to run on master and stable/newton
Issue: plugin. py are different on master and
- Classes used in gce_router_
stable/newton branch.
Example:
- In newton branch, we are importing "from neutron.db import l3_db"
and we are using this import as l3_db.Router. But on master branch,
l3_db doesn't have attribute "Router". Hence to solve this, we need
to import "from neutron.db.models import l3".
File Modified: neutron/ services/ l3_router/ gce_router_ plugin. py
- neutron/
Closes-Bug: #1702881
Change-Id: I4d872ee0034417 cdf38e774d69d1a cec7924cc17