openstack/neutron — pull request #19 by aaronknister (2014-04-23 21:00:40+00:00)
Title: decrement rules_index if we encounter duplicate chains

decrement rules_index when we encounter a duplicate chain. if we don't do this and a duplicate chain name is found then the rules will be inserted into the wrong place which can cause iptables-restore to fail to parse the new rule set.