From: Ferenc Tóth Date: Fri, 27 Sep 2019 09:26:48 +0000 (+0200) Subject: Prepare config.json for SRIOV DP v3.0.0+ X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Finfra-ansible.git;a=commitdiff_plain;h=d7b7726ee314b105537a07118b417e549f6c6fd2 Prepare config.json for SRIOV DP v3.0.0+ New SRIOV Device Plugin requires `selectors` to populate SRIOV pools properly. Signed-off-by: Ferenc Tóth Change-Id: If46f55f33c21cfefa765c56fba65b5610319e850 --- diff --git a/roles/sriovdp_config/templates/sriovdp_config.yaml.j2 b/roles/sriovdp_config/templates/sriovdp_config.yaml.j2 index 2ef5e92..c3bdde1 100644 --- a/roles/sriovdp_config/templates/sriovdp_config.yaml.j2 +++ b/roles/sriovdp_config/templates/sriovdp_config.yaml.j2 @@ -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