Skip to content

Commit a404156

Browse files
committed
CLOUDSTACK-9266: Make deleting static routes in private gw work
1 parent 333957f commit a404156

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

systemvm/patches/debian/config/opt/cloud/bin/cs_staticroutes.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,5 @@
2121
def merge(dbag, staticroutes):
2222
for route in staticroutes['routes']:
2323
key = route['network']
24-
revoke = route['revoke']
25-
if revoke:
26-
try:
27-
del dbag[key]
28-
except KeyError:
29-
pass
30-
else:
31-
dbag[key] = route
32-
24+
dbag[key] = route
3325
return dbag

0 commit comments

Comments
 (0)