# SPDX-FileCopyrightText: 2021-present Open Networking Foundation <info@opennetworking.org>
#
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0

apiVersion: config.onosproject.org/v1beta1
kind: Model
metadata:
  name: {{ template "aether.fullname" . }}
  namespace: {{ .Release.Namespace }}
  labels:
    {{- include "aether.labels" . | nindent 4 }}
spec:
  plugin:
    type: Aether
    version: {{ .Chart.AppVersion | quote }}
  modules:
  - name: aether-subscriber
    organization: Open Networking Foundation
    revision: 2020-08-18
    file: aether-subscriber.yang
  - name: apn-profile
    organization: Open Networking Foundation
    revision: 2020-08-18
    file: apn-profile.yang
  - name: up-profile
    organization: Open Networking Foundation
    revision: 2020-08-18
    file: up-profile.yang
  - name: qos-profile
    organization: Open Networking Foundation
    revision: 2020-08-18
    file: qos-profile.yang
  - name: access-profile
    organization: Open Networking Foundation
    revision: 2020-08-18
    file: access-profile.yang
  files:
    {{- range $path, $_  := $.Files.Glob "files/yang/*.yang" }}
    {{ base $path }}: |
{{ $.Files.Get $path | indent 6 }}
    {{- end }}
