Skip to content
Snippets Groups Projects
Commit cfb5c004 authored by Michal Nasiadka's avatar Michal Nasiadka Committed by Pierre Riteau
Browse files

nclu-switch: Fix order in template

Currently description is applied first to the interface, but if it's a
virtual one - it won't exist before running the configuration commands.

Story: 2010279
Task: 46232

Change-Id: I40212b40a4d391272f4063f42e8a7043b3d58fd7
parent 6e2f5a18
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,10 @@
{% endfor %}
{% for interface, config in nclu_switch_interface_config.items() %}
{% if config.description is defined %}
add {{ config.type | default("interface") }} {{ interface }} alias {{ config.description }}
{% endif %}
{% for line in config.config %}
add {{ config.type | default("interface") }} {{ interface }} {{ line }}
{% endfor %}
{% if config.description is defined %}
add {{ config.type | default("interface") }} {{ interface }} alias {{ config.description }}
{% endif %}
{% endfor %}
---
fixes:
- |
Fixes an issue with nclu-switch command ordering, when description was
applied first to a non-existent (virtual) interface. See `story 2010279
<https://storyboard.openstack.org/#!/story/2010279>`__ for details.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment