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
This commit is contained in:
parent
d364d03127
commit
0f129121a1
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user