commit 383d0c945e4874d7e66ad8ed03fe6556ac7c03d8
Author: Rick Harris <email address hidden>
Date: Tue May 27 16:09:40 2014 -0500
Fix interfaces template for two interfaces and IPv6
If you have more than one interface and IPv6 enabled, then the interfaces file
emitted would have the incorrect syntax: the `auto eth1` line would be
appended to the end of the `gateway` line of the previous stanza.
This was a result of improper whitespace control in the Jinja template which
this patch fixes.
In order to prevent regressions, this patch swaps out the existing tests with
corresponding tests that are whitespace sensitive. This is important because
it's difficult to tweak Jinja templates in a way that fixes the whitespace
for one scenario while not breaking another.
Reviewed: https:/ /review. openstack. org/105881 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=383d0c945e4 874d7e66ad8ed03 fe6556ac7c03d8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 383d0c945e4874d 7e66ad8ed03fe65 56ac7c03d8
Author: Rick Harris <email address hidden>
Date: Tue May 27 16:09:40 2014 -0500
Fix interfaces template for two interfaces and IPv6
If you have more than one interface and IPv6 enabled, then the interfaces file
emitted would have the incorrect syntax: the `auto eth1` line would be
appended to the end of the `gateway` line of the previous stanza.
This was a result of improper whitespace control in the Jinja template which
this patch fixes.
In order to prevent regressions, this patch swaps out the existing tests with
corresponding tests that are whitespace sensitive. This is important because
it's difficult to tweak Jinja templates in a way that fixes the whitespace
for one scenario while not breaking another.
Closes-Bug: 1339888
Change-Id: Id5566ea2f93ee1 a6b8bc42e83bc64 a1c6a09e680