AETHER-487 Add UPF CNI with the latest multus support
Change-Id: I6c8160817d8c429e9db2db27ad6fae07ba4e0dd7
diff --git a/omec/omec-upf-cni/templates/configmap-sriov-conf.yaml b/omec/omec-upf-cni/templates/configmap-sriov-conf.yaml
new file mode 100644
index 0000000..e3e9bbd
--- /dev/null
+++ b/omec/omec-upf-cni/templates/configmap-sriov-conf.yaml
@@ -0,0 +1,43 @@
+{{/*
+# Copyright 2018-present Open Networking Foundation
+# Copyright 2018 Intel Corporation
+
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
+*/}}
+
+---
+kind: ConfigMap
+apiVersion: v1
+metadata:
+ name: sriov-config
+data:
+ config.json: |
+ {
+ "resourceList": [
+ {
+ "resourceName": "sriov_vfio_access_net",
+ "selectors": {
+ "pfNames": {{ toJson .Values.config.sriov.resourceList.vfio.accessPfNames }},
+ "drivers": ["vfio-pci"]
+ }
+ },
+ {
+ "resourceName": "sriov_vfio_core_net",
+ "selectors": {
+ "pfNames": {{ toJson .Values.config.sriov.resourceList.vfio.corePfNames }},
+ "drivers": ["vfio-pci"]
+ }
+ }
+{{- if hasKey .Values.config.sriov.resourceList "netDevice" }}
+ ,
+ {
+ "resourceName": "sriov_netdevice",
+ "selectors": {
+ "pfNames": {{ toJson .Values.config.sriov.resourceList.netDevice.pfNames }},
+ "drivers": {{ toJson .Values.config.sriov.resourceList.netDevice.drivers }}
+ }
+ }
+{{- end }}
+ ]
+ }