From bf6a740f05813d8e400a89a2b81c8dd2ed5c0811 Mon Sep 17 00:00:00 2001 From: chenghuiyu Date: Thu, 14 Sep 2017 10:42:53 +0800 Subject: [PATCH] Stop using subscribe in l3_db The subscriptions are now registered during object creation, it is recommended that subscribe would be removed in Pike release. Change-Id: I15941199a11a736921984fa98ac9a633ec4ae4bd --- neutron/db/l3_db.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/neutron/db/l3_db.py b/neutron/db/l3_db.py index ca9dfc35ebe..30895dd8360 100644 --- a/neutron/db/l3_db.py +++ b/neutron/db/l3_db.py @@ -16,7 +16,6 @@ import functools import itertools import random -from debtcollector import removals import netaddr from neutron_lib.api import validators from neutron_lib.callbacks import events @@ -1926,11 +1925,3 @@ class L3_NAT_db_mixin(L3_NAT_dbonly_mixin, L3RpcNotifierMixin): for rp in router_db.attached_ports.filter_by(port_type=old_owner): rp.port_type = new_owner rp.port.device_owner = new_owner - - -@removals.remove( - message="This will be removed in the Pike release. " - "Subscriptions are now registered during object creation." -) -def subscribe(): - pass