]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
FWaaS - fix reordering of rules in policy
authorSumit Naiksatam <sumitnaiksatam@gmail.com>
Wed, 18 Sep 2013 06:27:20 +0000 (23:27 -0700)
committerSumit Naiksatam <sumitnaiksatam@gmail.com>
Wed, 18 Sep 2013 06:46:56 +0000 (23:46 -0700)
commitf521d509db2b38051dbef5e2000d145d37b71672
tree825d493b87307f4954e0df9b1580bfa908605bfc
parent8f40aa4ce107e8fb6e060d05a26cab42e90ee677
FWaaS - fix reordering of rules in policy

Due to a recent change, reodering of rules within the
same policy was failing. This is fixed by checking if
the rules belong to the same policy we allow reordering.

There was also a missing call to reorder due to which
the position number on the rules was not reflected correctly
after the reordering. This is also fixed.

Closes bug: #1226941

Change-Id: I7f52e8b9d578c290ace3bb615bf68bd213398303
neutron/db/firewall/firewall_db.py
neutron/tests/unit/db/firewall/test_db_firewall.py