Skip to content

Commit 782d5d7

Browse files
committed
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>
2 parents e24d5e5 + 62fc6fe commit 782d5d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
def merge(dbag, staticroutes):
2222
for route in staticroutes['routes']:
23-
key = route['ip_address']
23+
key = route['network']
2424
revoke = route['revoke']
2525
if revoke:
2626
try:

0 commit comments

Comments
 (0)