mirror of https://github.com/apache/cloudstack.git
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:
commit
782d5d73f5
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue