]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make ip address optional to add_route and delete_route
authorCarl Baldwin <carl.baldwin@hp.com>
Tue, 1 Sep 2015 16:58:22 +0000 (16:58 +0000)
committerCarl Baldwin <carl@ecbaldwin.net>
Wed, 9 Sep 2015 21:05:16 +0000 (21:05 +0000)
commit46e59d312a46d96860fc1226ec6024d10ef2b1e0
tree765aeb946920304ad9becf79efca25db0ba8a1ed
parentda4ee8c8d26880b6b1a20d18f5cbd38e7d5e4b04
Make ip address optional to add_route and delete_route

The add_route and delete_route methods require that the ip (actually
"via" in ip route terms) be passed.  Some routes don't require this.
This patch makes it optional while maintaining the position for those
callers who do pass it by position.

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