From 0f129121a1c8331c702204cf95951444ae53ef9c Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Thu, 18 Jul 2013 17:53:18 -0700 Subject: [PATCH] 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 --- neutron/plugins/nicira/nvplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2