]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix ValueError in ip_lib.IpRouteCommand.get_gateway()
authorArata Notsu <notsu@virtualtech.jp>
Fri, 10 Jan 2014 10:54:10 +0000 (19:54 +0900)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:21 +0000 (15:20 +0800)
commitdaa59739d86305c11eb05af167cad82cfd22a017
tree1f238560bc6c6bf430b08ff5b8a14110e55cdd6e
parent1f20dab8d5f5d7d0dde49e8c0f9f5bcc7151c282
Fix ValueError in ip_lib.IpRouteCommand.get_gateway()

As metric is not necessarily the 5th word of the gateway line, the
method should search the string 'metric' in the line and pick the next
word as the metric value.

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