]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Check if routing rule exists before adding
authorBrian Haley <brian.haley@hp.com>
Fri, 30 Jan 2015 18:22:17 +0000 (13:22 -0500)
committerBrian Haley <brian.haley@hp.com>
Wed, 18 Feb 2015 15:29:08 +0000 (10:29 -0500)
commitfaa9a6fb46f1c32ae7cf79dab55501c585eda7aa
tree1cbcb0f9a1964b3a9da9093204fbf0e9899c1689
parentc0b268c130fb9696467ecda546d2ded2df0e49e2
Check if routing rule exists before adding

Since there is no equivalent to 'ip route replace...' with
'ip rule...', we need to check the existence first before
adding, as otherwise we'll end up with multiple identical
routing rules.

Change-Id: I8f1f2424dd854fad8a72478463fa8fadd6a5c168
Closes-Bug: #1398865
neutron/agent/linux/ip_lib.py
neutron/tests/unit/test_linux_ip_lib.py