2ef5e927b8a871a843e0ac25424af285179f444d
[ta/infra-ansible.git] / roles / sriovdp_config / templates / sriovdp_config.yaml.j2
1 resourceList:
2 {% for nprof in network_profiles %}
3 {%   if nprof in hosts[ansible_hostname].network_profiles %}
4 {%     if network_profiles[nprof].sriov_provider_networks is defined %}
5 {%       for pool in network_profiles[nprof].sriov_provider_networks %}
6 {%         for iface in network_profiles[nprof].sriov_provider_networks[pool].interfaces %}
7 - resourceName: "sriov_{{ iface }}"
8   rootDevices: [ "{{ ifacepcimap[iface] }}" ]
9   sriovMode: true
10   deviceType: netdevice
11 {%         endfor %}
12 {%       endfor %}
13 {%     endif %}
14 {%   endif %}
15 {% endfor %}