Allow to set network_interface for a node
This patch allows to enroll nodes with specified
network_interface.
Change-Id: I83ef01499dab9b328cd8333dafd5623ecba83614
diff --git a/ironic/client.sls b/ironic/client.sls
index 30819e3..2fffb2a 100644
--- a/ironic/client.sls
+++ b/ironic/client.sls
@@ -16,6 +16,12 @@
- properties: {{ node.properties|default({}) }}
- profile: {{ identity_name }}
- driver_info: {{ node.driver_info|default({}) }}
+ {%- if node.network_interface is defined %}
+ - network_interface: {{ node.network_interface }}
+ {%- endif %}
+ {%- if node.ironic_api_version is defined %}
+ - ironic_api_version: "{{ node.ironic_api_version }}"
+ {%- endif %}
{%- if node.ports is defined %}
{%- for port in node.ports %}
@@ -28,7 +34,7 @@
- local_link_connection: {{ port.local_link_connection }}
{%- endif %}
{%- if port.ironic_api_version is defined %}
- - ironic_api_version: {{ port.ironic_api_version }}
+ - ironic_api_version: "{{ port.ironic_api_version }}"
{%- endif %}
- profile: {{ identity_name }}