add sriov whitelist options
[yaml_builds.git] / templates / software / charts / osh / openstack-compute-kit / nova.j2
index 5cd0e3e..c507f16 100644 (file)
@@ -47,6 +47,11 @@ data:
           vif_plugging_is_fatal: False
           vif_plugging_timeout: 30
         pci:
-          alias: '{ "vendor_id":"10de", "product_id":"1db4", "name":"V100", "device_type":"type-PCI" }'
-          passthrough_whitelist: '{"vendor_id": "10de", "product_id": "1db4"}'
-...
+#          alias: '{ "vendor_id":"10de", "product_id":"1db4", "name":"V100", "device_type":"type-PCI" }'
+#          passthrough_whitelist: '{"vendor_id": "10de", "product_id": "1db4"}'
+          alias: '{"name": "numa0", "capability_type": "pci", "product_id": "158b", "vendor_id": "8086", "device_type": "type-PCI", "numa_policy": "required"}`'
+{% for sriovnet in yaml.sriovnets %}
+          passthrough_whitelist: |
+            [{% for vf in sriovnet.whitelists -%}{"address":"{{vf["address"]}}","physical_network":"{{sriovnet.physical}}"}{% if loop.index < sriovnet.whitelists|length %},{% endif %}{% endfor %}]
+{% endfor %}
+....