­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ {{ name }} {% if target.path or target.permissions %} {% if target.path %} {{ target.path }} {% endif %} {% if target.permissions %} {% for key in ['mode', 'owner', 'group', 'label'] %} {% if key in target.permissions %} <{{ key }}>{{ target.permissions[key] }} {% endif %} {% endfor %} {% endif %} {% endif %} {% if source %} {% if ptype in ['fs', 'logical', 'disk', 'iscsi', 'zfs', 'vstorage', 'iscsi-direct'] %} {% for device in source.devices %} {% endfor %} {% elif ptype in ['dir', 'netfs', 'gluster'] %} {% elif ptype == 'scsi' %} {% if 'parent_address' in source.adapter %}
{% endif %} {% endif %} {% if ptype in ['netfs', 'iscsi', 'rbd', 'sheepdog', 'gluster', 'iscsi-direct'] and source.hosts %} {% for host in source.hosts %} {% endfor %} {% endif %} {% if ptype in ['iscsi', 'rbd', 'iscsi-direct'] and source.auth %} {% endif %} {% if ptype in ['logical', 'rbd', 'sheepdog', 'gluster'] and source.name %} {{ source.name }} {% endif %} {% if ptype in ['fs', 'netfs', 'logical', 'disk'] and source.format %} {% endif %} {% if ptype == 'iscsi-direct' and source.initiator %} {% endif %} {% endif %}