]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Pass 'top' to remove_rule so that rule matching succeeds
authorTerry Wilson <twilson@redhat.com>
Wed, 18 Jun 2014 03:32:56 +0000 (22:32 -0500)
committerTerry Wilson <twilson@redhat.com>
Thu, 19 Jun 2014 01:48:24 +0000 (01:48 +0000)
commit79f6ccd1b5b67c23d438332e9d8641d07426a9a1
tree450d6703cc90b41a1df6274c4864b1a8059c5b50
parent24718e6f1764e95f0c393ba042546e3584981b31
Pass 'top' to remove_rule so that rule matching succeeds

When deleting a vpn-site-connection, deleting the nat rule would
fail because it was created with top=True, but top defaults to
'false' in remove_rule and was not being passed. This caused the
rule matching to fail and the rule to not be deleted.

Change-Id: I51012a783314c97e85b31fc8a73be4cbb8ee7dc5
Closes-Bug: #1331839
neutron/services/vpn/agent.py
neutron/tests/unit/services/vpn/test_vpn_agent.py