diff --git a/neutron/agent/securitygroups_rpc.py b/neutron/agent/securitygroups_rpc.py index fe678510601..46ceab8497f 100644 --- a/neutron/agent/securitygroups_rpc.py +++ b/neutron/agent/securitygroups_rpc.py @@ -389,4 +389,4 @@ class SecurityGroupAgentRpcApiMixin(object): cctxt = self.client.prepare(version=SG_RPC_VERSION, topic=self._get_security_group_topic(), fanout=True) - cctxt.cast(context, 'security_groups_member_updated') + cctxt.cast(context, 'security_groups_provider_updated') diff --git a/neutron/tests/unit/test_security_groups_rpc.py b/neutron/tests/unit/test_security_groups_rpc.py index eb7b1f9c535..b17ecbeadd9 100644 --- a/neutron/tests/unit/test_security_groups_rpc.py +++ b/neutron/tests/unit/test_security_groups_rpc.py @@ -1644,6 +1644,11 @@ class SecurityGroupAgentRpcApiTestCase(base.BaseTestCase): self.mock_cast = mock.patch.object(self.notifier.client, 'cast').start() + def test_security_groups_provider_updated(self): + self.notifier.security_groups_provider_updated(None) + self.mock_cast.assert_has_calls( + [mock.call(None, 'security_groups_provider_updated')]) + def test_security_groups_rule_updated(self): self.notifier.security_groups_rule_updated( None, security_groups=['fake_sgid'])