Prepare config.json for SRIOV DP v3.0.0+ 61/1661/1
authorFerenc Tóth <ferenc.2.toth@nokia.com>
Fri, 27 Sep 2019 09:26:48 +0000 (11:26 +0200)
committerFerenc Tóth <ferenc.2.toth@nokia.com>
Fri, 27 Sep 2019 09:30:29 +0000 (11:30 +0200)
New SRIOV Device Plugin requires `selectors` to populate
SRIOV pools properly.

Signed-off-by: Ferenc Tóth <ferenc.2.toth@nokia.com>
Change-Id: If46f55f33c21cfefa765c56fba65b5610319e850

roles/sriovdp_config/templates/sriovdp_config.yaml.j2

index 2ef5e92..c3bdde1 100644 (file)
@@ -5,6 +5,8 @@ resourceList:
 {%       for pool in network_profiles[nprof].sriov_provider_networks %}
 {%         for iface in network_profiles[nprof].sriov_provider_networks[pool].interfaces %}
 - resourceName: "sriov_{{ iface }}"
+  selectors:
+    pfNames: [ "{{ iface }}" ]
   rootDevices: [ "{{ ifacepcimap[iface] }}" ]
   sriovMode: true
   deviceType: netdevice