Github user swill commented on the issue:
https://github.com/apache/cloudstack/pull/2003
I am considering changing my implementation to be the same as the old
implementation (which removed the IP from the dbag in the initial loop of the
merge), but if `source_nat` is present and it is `true` and the
`len(dbag[ip['device']]) > 0` (with all the checking required), then prepend
else append. This should ensure that the source nat ip is the primary ip on
the nic which the StrongSwan feature depends on.
If I do this and there is a bug elsewhere that will duplicate the IPs in
the databag, then this will clean that up (as I assume it was doing before).
Not sure this will fix @borisstoyanov's current problem, but I think it is
probably a safer implementation to keep the source nat IP as the first IP.
I will update this PR with that change later today...
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---