]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make ip rule comparison more robust
authorCarl Baldwin <carl.baldwin@hp.com>
Fri, 28 Aug 2015 21:19:40 +0000 (21:19 +0000)
committerCarl Baldwin <carl.baldwin@hpe.com>
Wed, 9 Sep 2015 16:39:47 +0000 (16:39 +0000)
commit7bd30aa49c24dc65332740e4fa74da28533b92ed
tree9123e19f07298d5205ff92501200314b4263822a
parent4c11e006ef98836fb5cd6848d819d5d5b95cae4e
Make ip rule comparison more robust

I found that ip rules would be added multiple times in new address
scopes code because the _exists method was unable to reliably
determine if the rule already existed.  This commit improves this by
more robustly canonicalizing what it reads from the ip rule command so
that like rules always compare the same.

Change-Id: I6d0c208f0ed8e65cdb750789321a7ad6ca1b77c2
Partially-Implements: blueprint address-scopes
neutron/agent/linux/ip_lib.py
neutron/tests/unit/agent/linux/test_ip_lib.py