]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
fix call which is only specific to enhanced_rpc
authorSudhakar Babu Gariganti <sudhakar-babu.gariganti@hp.com>
Fri, 11 Sep 2015 08:32:41 +0000 (14:02 +0530)
committerSudhakar Babu Gariganti <sudhakar-babu.gariganti@hp.com>
Wed, 9 Dec 2015 06:09:51 +0000 (11:39 +0530)
commitbb7bfa03d3cc1044e2323b8a904e4456aa889f92
tree9dcd47d7b70f50e36516aa175611e9f89cd45a4a
parent1a8838357e5279f9f154a261d3dc6dd781cfba0c
fix call which is only specific to enhanced_rpc

security_group_updated method is not implemented in the default
FirewallDriver class. But SecurityGroupAgentRpc class assumes the method
is implemented by the underlying Firewall driver.

This patch adds a check to ensure that only the drivers which leverages
enhanced RPC will make the call.

Related-Bug: #1493104
Change-Id: I0ee44a5ce69368c7731adfe9953adc0b2c5ff2d2
neutron/agent/firewall.py
neutron/agent/securitygroups_rpc.py
neutron/tests/unit/agent/test_securitygroups_rpc.py