From: Kevin Benton Date: Fri, 17 Apr 2015 11:18:56 +0000 (-0700) Subject: Strip unnecessary overrides in extraroute_db mixin X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=6c6d3c9cca17a788a31526bb652dcdfc7bb54326;p=openstack-build%2Fneutron-build.git Strip unnecessary overrides in extraroute_db mixin The extra route DB mixin seemed to be overriding the get_router and get_routers method for no reason. They both just called the super version of themselves with the same arguments. This patch just pulls those functions out. Found in tracebacks while working on a related bug. Change-Id: Ifd1a0676073e91104db3a13df6fe1eb2189f20f5 Related-bug: #1445412 --- diff --git a/neutron/db/extraroute_db.py b/neutron/db/extraroute_db.py index 5966439c9..264bff163 100644 --- a/neutron/db/extraroute_db.py +++ b/neutron/db/extraroute_db.py @@ -157,21 +157,6 @@ class ExtraRoute_dbonly_mixin(l3_db.L3_NAT_dbonly_mixin): routes_dict[(route['destination'], route['nexthop'])] = route return routes, routes_dict - def get_router(self, context, id, fields=None): - with context.session.begin(subtransactions=True): - router = super(ExtraRoute_dbonly_mixin, self).get_router( - context, id, fields) - return router - - def get_routers(self, context, filters=None, fields=None, - sorts=None, limit=None, marker=None, - page_reverse=False): - with context.session.begin(subtransactions=True): - routers = super(ExtraRoute_dbonly_mixin, self).get_routers( - context, filters, fields, sorts=sorts, limit=limit, - marker=marker, page_reverse=page_reverse) - return routers - def _confirm_router_interface_not_in_use(self, context, router_id, subnet_id): super(ExtraRoute_dbonly_mixin,