Merge "Revert "NSXv: Don't remove default static routes on edge""

This commit is contained in:
Jenkins 2017-04-20 15:40:34 +00:00 committed by Gerrit Code Review
commit b9670c500f
1 changed files with 0 additions and 9 deletions

View File

@ -692,15 +692,6 @@ class EdgeApplianceDriver(object):
"description": "default-gateway",
"gatewayAddress": gateway
}
else:
# If external subnet has no gateway, then assume using ECMP with
# multipule default static routes. Retain them.
h, curr_routes = self.vcns.get_routes(edge_id)
curr_routes = curr_routes.get('staticRoutes',
{}).get('staticRoutes', [])
default_routes = [r for r in curr_routes
if r['network'] != '0.0.0.0/0']
static_routes.extend(default_routes)
try:
self.vcns.update_routes(edge_id, request)
return True