Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4106 from davecheney/fixedbugs/1533792
Rewrite AddSubnetsWithTemplate to work around gccgo bug Fixes LP 1533792 gccgo-4.9 as shipped in Trusty has a number of issues when interfaces and reflection are combined. In an ideal world these bugs would not happen, but they do, so the most expedient course of action is to work around them in our code. This change replaces the reflection driven construction of a state.SubnetInfo structure with a more straight forward method which permutes the string fields known to the structure today. This isn't as future proof as the previous method, but avoiding the Faustian combination of interfaces and reflection should make this code more reliable on buggy compilers. (Review request: http://reviews.vapour.ws/r/3527/)
- Loading branch information