]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix KeyError when getting secgroup info for ports
authorshihanzhang <shihanzhang@huawei.com>
Mon, 22 Sep 2014 09:28:06 +0000 (17:28 +0800)
committershihanzhang <shihanzhang@huawei.com>
Wed, 24 Sep 2014 10:08:05 +0000 (10:08 +0000)
commit55f6a8ac5d234f004ef06add87d16284e9f048d3
tree1f9ee22970acef9c8b7c4f9bb65df8d9ecd01e7b
parenta76af4ade3c751a4372a427989035cf8c32342b0
Fix KeyError when getting secgroup info for ports

The patch fixes a regression introduced with secgroup rpc refactor by
handling the case when security group contains rules for only IPv4 or
IPv6.

Change-Id: I02b174757bfc796a81cdb482c55ba7f9e954131d
Closes-bug: #1372337
neutron/db/securitygroups_rpc_base.py
neutron/tests/unit/test_security_groups_rpc.py