Merge "Wrong key router.interface reported by ceilometer"
This commit is contained in:
commit
ddc2080935
@ -446,7 +446,7 @@ class L3_NAT_db_mixin(l3.RouterPluginBase):
|
|||||||
notifier_api.publisher_id('network'),
|
notifier_api.publisher_id('network'),
|
||||||
'router.interface.create',
|
'router.interface.create',
|
||||||
notifier_api.CONF.default_notification_level,
|
notifier_api.CONF.default_notification_level,
|
||||||
{'router.interface': info})
|
{'router_interface': info})
|
||||||
return info
|
return info
|
||||||
|
|
||||||
def _confirm_router_interface_not_in_use(self, context, router_id,
|
def _confirm_router_interface_not_in_use(self, context, router_id,
|
||||||
@ -520,7 +520,7 @@ class L3_NAT_db_mixin(l3.RouterPluginBase):
|
|||||||
notifier_api.publisher_id('network'),
|
notifier_api.publisher_id('network'),
|
||||||
'router.interface.delete',
|
'router.interface.delete',
|
||||||
notifier_api.CONF.default_notification_level,
|
notifier_api.CONF.default_notification_level,
|
||||||
{'router.interface': info})
|
{'router_interface': info})
|
||||||
return info
|
return info
|
||||||
|
|
||||||
def _get_floatingip(self, context, id):
|
def _get_floatingip(self, context, id):
|
||||||
|
@ -670,7 +670,7 @@ class L3NatTestCaseBase(L3NatTestCaseMixin):
|
|||||||
|
|
||||||
for n in test_notifier.NOTIFICATIONS:
|
for n in test_notifier.NOTIFICATIONS:
|
||||||
if n['event_type'].startswith('router.interface.'):
|
if n['event_type'].startswith('router.interface.'):
|
||||||
payload = n['payload']['router.interface']
|
payload = n['payload']['router_interface']
|
||||||
self.assertIn('id', payload)
|
self.assertIn('id', payload)
|
||||||
self.assertEqual(payload['id'], r['router']['id'])
|
self.assertEqual(payload['id'], r['router']['id'])
|
||||||
self.assertIn('tenant_id', payload)
|
self.assertIn('tenant_id', payload)
|
||||||
|
Loading…
Reference in New Issue
Block a user