SDFAB-998 Move omec-user-plane from aether-helm-chart to sdfabric-helm-chart
It is renamed to bess-upf.
The license is also updated to Apache 2.0.
We also remove omec-upf-cni which is no longer in use.
Change-Id: Ie9ce877c13203a76bf90d24918734ded33587157
diff --git a/bess-upf/templates/networks.yaml b/bess-upf/templates/networks.yaml
new file mode 100644
index 0000000..7f731e9
--- /dev/null
+++ b/bess-upf/templates/networks.yaml
@@ -0,0 +1,60 @@
+{{/*
+# Copyright 2020-present Open Networking Foundation
+
+# SPDX-License-Identifier: Apache-2.0
+*/}}
+
+---
+apiVersion: "k8s.cni.cncf.io/v1"
+kind: NetworkAttachmentDefinition
+metadata:
+ name: access-net
+{{- if $.Values.config.upf.sriov.enabled }}
+ annotations:
+ k8s.v1.cni.cncf.io/resourceName: {{ .Values.config.upf.access.resourceName }}
+{{- end }}
+spec:
+ config: '{
+ "cniVersion": "0.3.1",
+ {{- if hasKey .Values.config.upf.access "vlan" }}
+ "vlan": {{ .Values.config.upf.access.vlan }},
+ {{- end }}
+ "type": {{ .Values.config.upf.cniPlugin | quote }},
+ {{- if eq .Values.config.upf.cniPlugin "macvlan" }}
+ "master": {{ .Values.config.upf.access.iface | quote }},
+ {{- end }}
+ {{- if eq .Values.config.upf.cniPlugin "host-device" }}
+ "device": {{ .Values.config.upf.access.iface | quote }},
+ {{- end }}
+ "ipam": {
+ "type": {{ .Values.config.upf.ipam | quote }}
+ },
+ "capabilities": { "mac": true}
+ }'
+---
+apiVersion: "k8s.cni.cncf.io/v1"
+kind: NetworkAttachmentDefinition
+metadata:
+ name: core-net
+{{- if $.Values.config.upf.sriov.enabled }}
+ annotations:
+ k8s.v1.cni.cncf.io/resourceName: {{ .Values.config.upf.core.resourceName }}
+{{- end }}
+spec:
+ config: '{
+ "cniVersion": "0.3.1",
+ {{- if hasKey .Values.config.upf.core "vlan" }}
+ "vlan": {{ .Values.config.upf.core.vlan }},
+ {{- end }}
+ "type": {{ .Values.config.upf.cniPlugin | quote }},
+ {{- if eq .Values.config.upf.cniPlugin "macvlan" }}
+ "master": {{ .Values.config.upf.core.iface | quote }},
+ {{- end }}
+ {{- if eq .Values.config.upf.cniPlugin "host-device" }}
+ "device": {{ .Values.config.upf.core.iface | quote }},
+ {{- end }}
+ "ipam": {
+ "type": {{ .Values.config.upf.ipam | quote }}
+ },
+ "capabilities": { "mac": true}
+ }'