From: armando-migliaccio Date: Fri, 19 Jul 2013 00:53:18 +0000 (-0700) Subject: Allow to clear extra routes in NVP X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=0f129121a1c8331c702204cf95951444ae53ef9c;p=openstack-build%2Fneutron-build.git Allow to clear extra routes in NVP Since the neutron client can unset any attribute, ensure we can handle empty routes as a way to clear the extraroutes for the router. Fixes bug #1202890 Change-Id: Ib240a42ba1075d9a410da904b3d3ae9e19b2d86e --- diff --git a/neutron/plugins/nicira/nvplib.py b/neutron/plugins/nicira/nvplib.py index 88b2b848c..7d35d2c97 100644 --- a/neutron/plugins/nicira/nvplib.py +++ b/neutron/plugins/nicira/nvplib.py @@ -567,7 +567,7 @@ def update_explicit_routing_lrouter(cluster, router_id, if next_hop: update_default_gw_explicit_routing_lrouter(cluster, router_id, next_hop) - if routes: + if routes is not None: return update_explicit_routes_lrouter(cluster, router_id, routes)