Merge "Send only one agent notification on port update"
This commit is contained in:
commit
6a0627e116
|
@ -98,8 +98,6 @@ class SecurityGroupServerRpcMixin(sg_db.SecurityGroupDbMixin):
|
|||
not utils.compare_elements(
|
||||
original_port.get(ext_sg.SECURITYGROUPS),
|
||||
updated_port.get(ext_sg.SECURITYGROUPS))):
|
||||
self.notify_security_groups_member_updated(
|
||||
context, updated_port)
|
||||
need_notify = True
|
||||
return need_notify
|
||||
|
||||
|
|
|
@ -1442,9 +1442,7 @@ class SGNotificationTestMixin():
|
|||
self._delete('ports', port['port']['id'])
|
||||
self.notifier.assert_has_calls(
|
||||
[call.security_groups_member_updated(
|
||||
mock.ANY, [mock.ANY]),
|
||||
call.security_groups_member_updated(
|
||||
mock.ANY, [security_group_id])])
|
||||
mock.ANY, [mock.ANY])])
|
||||
|
||||
|
||||
class TestSecurityGroupAgentWithOVSIptables(
|
||||
|
|
Loading…
Reference in New Issue