[
https://issues.apache.org/jira/browse/CLOUDSTACK-9256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15116832#comment-15116832
]
ASF GitHub Bot commented on CLOUDSTACK-9256:
--------------------------------------------
Github user remibergsma commented on the pull request:
https://github.com/apache/cloudstack/pull/1364#issuecomment-174863942
`cat /etc/cloudstack/staticroutes.json` before and after change:
Before always had one entry:
```
{
"10.135.255.10": {
"gateway": "10.135.255.129",
"ip_address": "10.135.255.10",
"network": "10.0.0.0/9",
"revoke": false
},
}
```
After this PR:
```
{
"10.0.0.0/9": {
"gateway": "10.135.255.129",
"ip_address": "10.135.255.10",
"network": "10.0.0.0/9",
"revoke": false
},
"10.128.0.0/13": {
"gateway": "10.135.255.129",
"ip_address": "10.135.255.10",
"network": "10.128.0.0/13",
"revoke": false
},
}
```
> Static routes get lost after network restart
> --------------------------------------------
>
> Key: CLOUDSTACK-9256
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9256
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Affects Versions: 4.7.0
> Reporter: Remi Bergsma
> Assignee: Remi Bergsma
>
> Static 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)