router_db.update(r)
routers = self.get_sync_data(context.elevated(),
[router_db['id']])
- l3_rpc_agent_api.L3AgentNofity.routers_updated(context, routers)
+ l3_rpc_agent_api.L3AgentNotify.routers_updated(context, routers)
return self._make_router_dict(router_db)
def _update_router_gw_info(self, context, router_id, info):
self._delete_port(context.elevated(), ports[0]['id'])
context.session.delete(router)
- l3_rpc_agent_api.L3AgentNofity.router_deleted(context, id)
+ l3_rpc_agent_api.L3AgentNotify.router_deleted(context, id)
def get_router(self, context, id, fields=None):
router = self._get_router(context, id)
'name': ''}})
routers = self.get_sync_data(context.elevated(), [router_id])
- l3_rpc_agent_api.L3AgentNofity.routers_updated(context, routers)
+ l3_rpc_agent_api.L3AgentNotify.routers_updated(context, routers)
info = {'port_id': port['id'],
'subnet_id': port['fixed_ips'][0]['subnet_id']}
notifier_api.notify(context,
raise l3.RouterInterfaceNotFoundForSubnet(router_id=router_id,
subnet_id=subnet_id)
routers = self.get_sync_data(context.elevated(), [router_id])
- l3_rpc_agent_api.L3AgentNofity.routers_updated(context, routers)
+ l3_rpc_agent_api.L3AgentNotify.routers_updated(context, routers)
notifier_api.notify(context,
notifier_api.publisher_id('network'),
'router.interface.delete',
router_id = floatingip_db['router_id']
if router_id:
routers = self.get_sync_data(context.elevated(), [router_id])
- l3_rpc_agent_api.L3AgentNofity.routers_updated(context, routers)
+ l3_rpc_agent_api.L3AgentNotify.routers_updated(context, routers)
return self._make_floatingip_dict(floatingip_db)
def update_floatingip(self, context, id, floatingip):
router_ids.append(router_id)
if router_ids:
routers = self.get_sync_data(context.elevated(), router_ids)
- l3_rpc_agent_api.L3AgentNofity.routers_updated(context, routers)
+ l3_rpc_agent_api.L3AgentNotify.routers_updated(context, routers)
return self._make_floatingip_dict(floatingip_db)
def delete_floatingip(self, context, id):
l3_port_check=False)
if router_id:
routers = self.get_sync_data(context.elevated(), [router_id])
- l3_rpc_agent_api.L3AgentNofity.routers_updated(context, routers)
+ l3_rpc_agent_api.L3AgentNotify.routers_updated(context, routers)
def get_floatingip(self, context, id, fields=None):
floatingip = self._get_floatingip(context, id)
% port_id)
if router_id:
routers = self.get_sync_data(context.elevated(), [router_id])
- l3_rpc_agent_api.L3AgentNofity.routers_updated(context, routers)
+ l3_rpc_agent_api.L3AgentNotify.routers_updated(context, routers)
def _check_l3_view_auth(self, context, network):
return policy.check(context,
topic=topic, default_version=self.BASE_RPC_API_VERSION)
def router_deleted(self, context, router_id):
- LOG.debug(_('Nofity agent the router %s is deleted'), router_id)
+ LOG.debug(_('Notify agent the router %s is deleted'), router_id)
self.cast(context,
self.make_msg('router_deleted',
router_id=router_id),
def routers_updated(self, context, routers):
if routers:
- LOG.debug(_('Nofity agent routers were updated:\n %s'),
+ LOG.debug(_('Notify agent routers were updated:\n %s'),
jsonutils.dumps(routers, indent=5))
self.cast(context,
self.make_msg('routers_updated',
topic=self.topic)
-L3AgentNofity = L3AgentNotifyAPI()
+L3AgentNotify = L3AgentNotifyAPI()
def _test_notify_op_agent(self, target_func, *args):
l3_rpc_agent_api_str = (
'quantum.db.l3_rpc_agent_api.L3AgentNotifyAPI')
- oldNotify = l3_rpc_agent_api.L3AgentNofity
+ oldNotify = l3_rpc_agent_api.L3AgentNotify
try:
with mock.patch(l3_rpc_agent_api_str) as notifyApi:
- l3_rpc_agent_api.L3AgentNofity = notifyApi
+ l3_rpc_agent_api.L3AgentNotify = notifyApi
kargs = [item for item in args]
kargs.append(notifyApi)
target_func(*kargs)
except:
- l3_rpc_agent_api.L3AgentNofity = oldNotify
+ l3_rpc_agent_api.L3AgentNotify = oldNotify
raise
else:
- l3_rpc_agent_api.L3AgentNofity = oldNotify
+ l3_rpc_agent_api.L3AgentNotify = oldNotify
def _test_router_gateway_op_agent(self, notifyApi):
with self.router() as r: