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
This commit is contained in:
chenghuiyu 2017-09-14 10:42:53 +08:00
parent 50f4951639
commit bf6a740f05
1 changed files with 0 additions and 9 deletions

View File

@ -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