CLOUDSTACK-9266: Make deleting static routes in private gw work

This commit is contained in:
Remi Bergsma 2016-01-30 06:24:03 +01:00
parent 333957f00f
commit a40415604a

View File

@ -21,13 +21,5 @@ from pprint import pprint
def merge(dbag, staticroutes):
for route in staticroutes['routes']:
key = route['network']
revoke = route['revoke']
if revoke:
try:
del dbag[key]
except KeyError:
pass
else:
dbag[key] = route
dbag[key] = route
return dbag