]> 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)
committerArata Notsu <notsu@virtualtech.jp>
Wed, 12 Feb 2014 06:43:52 +0000 (15:43 +0900)
commit5b5ba869aa4680bcfa7544c4e718cb5a5dc9c168
tree6d01d742f60945e12133ebe2958a907b73ac4ec6
parent59bf3d73894feb0610f9d32130acff16dd2519d3
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