Merge pull request #1364 from remibergsma/CLOUDSTACK-9256

CLOUDSTACK-9256 add unique key for static routes in jsonStatic routes that are being set do not show up in the static_routes.json file. The reason for this is that the index that is used, is the gateway address, which is not unique. Hence stuff is overwritten and lost.

Ping @borisroman @wilderrodrigues @DaanHoogland

* pr/1364:
  CLOUDSTACK-9256 add unique key for static routes in json

Signed-off-by: Remi Bergsma <github@remi.nl>
This commit is contained in:
Remi Bergsma 2016-01-26 17:06:21 +01:00
commit 782d5d73f5
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ from pprint import pprint
def merge(dbag, staticroutes):
for route in staticroutes['routes']:
key = route['ip_address']
key = route['network']
revoke = route['revoke']
if revoke:
try: