Add client state to create volume connectors
This patch adds ability to craete volume connectors
Change-Id: I06eb73f156cadb107cde8cbb2d1424ee9b679c1b
Related-Prod: PROD:25368 (PROD:25368)
diff --git a/ironic/client.sls b/ironic/client.sls
index 7a12d23..fdc53a5 100644
--- a/ironic/client.sls
+++ b/ironic/client.sls
@@ -41,7 +41,18 @@
{%- endfor %} # end for ports
{%- endif %} # end if node.ports defined
+ {%- for vc_name, vc in node.get('volume_connectors', {}).iteritems() %}
+{{ node.name }}_volume_connector{{ vc_name }}_present:
+ ironicv1.volume_connector_present:
+ - name: {{ vc.get('name', vc_name) }}
+ - node: {{ node.name }}
+ - volume_type: {{ vc.volume_type }}
+ - cloud_name: {{ client.cloud_name }}
+
+ {%- endfor %} # end for volume_connectors
+
{%- endfor %} # end for nodes
+
{%- endfor %} # end client.nodes.iteritems
{%- endif %} # end if client.enabled