Andy Bavier | a40e82b | 2018-05-07 17:00:36 -0700 | [diff] [blame] | 1 | {{/* vim: set filetype=mustache: */}} |
| 2 | {{/* |
| 3 | Copyright 2018-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | */}} |
| 17 | {{/* |
| 18 | Expand the name of the chart. |
| 19 | */}} |
| 20 | {{- define "epc-service.name" -}} |
| 21 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} |
| 22 | {{- end -}} |
| 23 | |
| 24 | {{/* |
| 25 | Create a default fully qualified app name. |
| 26 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). |
| 27 | If release name contains chart name it will be used as a full name. |
| 28 | */}} |
| 29 | {{- define "epc-service.fullname" -}} |
| 30 | {{- if .Values.fullnameOverride -}} |
| 31 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} |
| 32 | {{- else -}} |
| 33 | {{- $name := default .Chart.Name .Values.nameOverride -}} |
| 34 | {{- if contains $name .Release.Name -}} |
| 35 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} |
| 36 | {{- else -}} |
| 37 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} |
| 38 | {{- end -}} |
| 39 | {{- end -}} |
| 40 | {{- end -}} |
| 41 | |
| 42 | {{/* |
| 43 | Create chart name and version as used by the chart label. |
| 44 | */}} |
| 45 | {{- define "epc-service.chart" -}} |
| 46 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} |
| 47 | {{- end -}} |
| 48 | |
| 49 | {{- define "epc-service.serviceConfig" -}} |
| 50 | name: vepc |
| 51 | accessor: |
| 52 | username: {{ .Values.xosAdminUser | quote }} |
| 53 | password: {{ .Values.xosAdminPassword | quote }} |
| 54 | endpoint: xos-core:50051 |
| 55 | required_models: |
| 56 | - VEPCService |
| 57 | - VEPCServiceInstance |
| 58 | dependency_graph: "/opt/xos/synchronizers/epc-service/model-deps" |
| 59 | # steps_dir: "/opt/xos/synchronizers/epc-service/steps" |
| 60 | sys_dir: "/opt/xos/synchronizers/epc-service/sys" |
| 61 | model_policies_dir: "/opt/xos/synchronizers/epc-service/model_policies" |
| 62 | models_dir: "/opt/xos/synchronizers/epc-service/models" |
| 63 | logging: |
| 64 | version: 1 |
| 65 | handlers: |
| 66 | console: |
| 67 | class: logging.StreamHandler |
| 68 | file: |
| 69 | class: logging.handlers.RotatingFileHandler |
| 70 | filename: /var/log/xos.log |
| 71 | maxBytes: 10485760 |
| 72 | backupCount: 5 |
| 73 | loggers: |
| 74 | 'multistructlog': |
| 75 | handlers: |
| 76 | - console |
| 77 | - file |
| 78 | level: DEBUG |
| 79 | blueprints: |
| 80 | - name: build |
| 81 | networks: |
| 82 | - name: s1u_network |
| 83 | subnet: 111.0.0.0/24 |
| 84 | permit_all_slices: True |
| 85 | template: private_template |
| 86 | owner: vspgwu |
| 87 | - name: s11_network |
| 88 | subnet: 112.0.0.0/24 |
| 89 | permit_all_slices: True |
| 90 | template: private_template |
| 91 | owner: vspgwc |
| 92 | - name: sgi_network |
| 93 | subnet: 115.0.0.0/24 |
| 94 | permit_all_slices: True |
| 95 | template: private_template |
| 96 | owner: vspgwu |
| 97 | - name: spgw_network |
| 98 | subnet: 117.0.0.0/24 |
| 99 | permit_all_slices: True |
| 100 | template: private_template |
| 101 | owner: vspgwu |
| 102 | graph: |
| 103 | - name: VSPGWUTenant |
| 104 | networks: |
| 105 | - management |
| 106 | - s1u_network |
| 107 | - sgi_network |
| 108 | - spgw_network |
| 109 | links: |
| 110 | - name: VENBServiceInstance |
| 111 | node_label: gwu-enb |
| 112 | networks: |
| 113 | - s1u_network |
| 114 | - sgi_network |
| 115 | - name: VENBServiceInstance |
| 116 | networks: |
| 117 | - management |
| 118 | - s1u_network |
| 119 | - sgi_network |
| 120 | - s11_network |
| 121 | - name: VSPGWCTenant |
| 122 | networks: |
| 123 | - management |
| 124 | - s11_network |
| 125 | - spgw_network |
| 126 | links: |
| 127 | - name: VENBServiceInstance |
| 128 | networks: |
| 129 | - s11_network |
| 130 | - name: VSPGWUTenant |
| 131 | networks: |
| 132 | - spgw_network |
| 133 | - name: mcord_5 |
| 134 | networks: |
| 135 | - name: flat_network_s1u |
| 136 | subnet: 119.0.0.0/24 |
| 137 | permit_all_slices: True |
| 138 | template: flat_template |
| 139 | owner: vspgwu |
| 140 | - name: flat_network_s1mme |
| 141 | subnet: 118.0.0.0/24 |
| 142 | permit_all_slices: True |
| 143 | template: flat_template |
| 144 | owner: vmme |
| 145 | - name: s11_network |
| 146 | subnet: 112.0.0.0/24 |
| 147 | permit_all_slices: True |
| 148 | template: private_template |
| 149 | owner: vspgwc |
| 150 | - name: sgi_network |
| 151 | subnet: 115.0.0.0/24 |
| 152 | permit_all_slices: True |
| 153 | owner: vspgwu |
| 154 | template: private_template |
| 155 | - name: spgw_network |
| 156 | subnet: 117.0.0.0/24 |
| 157 | permit_all_slices: True |
| 158 | template: private_template |
| 159 | owner: vspgwu |
| 160 | - name: s6a_network |
| 161 | subnet: 120.0.0.0/24 |
| 162 | permit_all_slices: True |
| 163 | template: private_template |
| 164 | owner: vhss |
| 165 | - name: db_network |
| 166 | subnet: 121.0.0.0/24 |
| 167 | permit_all_slices: True |
| 168 | template: private_template |
| 169 | owner: vhss |
| 170 | graph: |
| 171 | - name: VMMETenant |
| 172 | networks: |
| 173 | - management |
| 174 | - flat_network_s1mme |
| 175 | - s11_network |
| 176 | - s6a_network |
| 177 | links: |
| 178 | - name: VHSSTenant |
| 179 | networks: |
| 180 | - s6a_network |
| 181 | - name: VSPGWCTenant |
| 182 | networks: |
| 183 | - management |
| 184 | - s11_network |
| 185 | - spgw_network |
| 186 | links: |
| 187 | - name: VMMETenant |
| 188 | networks: |
| 189 | - s11_network |
| 190 | - name: VSPGWUTenant |
| 191 | networks: |
| 192 | - spgw_network |
| 193 | - name: VSPGWUTenant |
| 194 | networks: |
| 195 | - management |
| 196 | - flat_network_s1u |
| 197 | - sgi_network |
| 198 | - spgw_network |
| 199 | - name: VHSSTenant |
| 200 | networks: |
| 201 | - management |
| 202 | - s6a_network |
| 203 | - db_network |
| 204 | links: |
| 205 | - name: HSSDBServiceInstance |
| 206 | networks: |
| 207 | - db_network |
| 208 | - name: HSSDBServiceInstance |
| 209 | networks: |
| 210 | - management |
| 211 | - db_network |
| 212 | - name: mcord_5_p4 |
| 213 | networks: |
| 214 | - name: flat_network_s1mme |
| 215 | subnet: 118.0.0.0/24 |
| 216 | permit_all_slices: True |
| 217 | template: flat_template |
| 218 | owner: vmme |
| 219 | - name: s11_network |
| 220 | subnet: 112.0.0.0/24 |
| 221 | permit_all_slices: True |
| 222 | template: private_template |
| 223 | owner: vspgwc |
| 224 | - name: s6a_network |
| 225 | subnet: 120.0.0.0/24 |
| 226 | permit_all_slices: True |
| 227 | template: private_template |
| 228 | owner: vhss |
| 229 | - name: db_network |
| 230 | subnet: 121.0.0.0/24 |
| 231 | permit_all_slices: True |
| 232 | template: private_template |
| 233 | owner: vhss |
| 234 | graph: |
| 235 | - name: VMMETenant |
| 236 | networks: |
| 237 | - management |
| 238 | - flat_network_s1mme |
| 239 | - s11_network |
| 240 | - s6a_network |
| 241 | links: |
| 242 | - name: VHSSTenant |
| 243 | networks: |
| 244 | - s6a_network |
| 245 | - name: VSPGWCTenant |
| 246 | networks: |
| 247 | - management |
| 248 | - s11_network |
| 249 | links: |
| 250 | - name: VMMETenant |
| 251 | networks: |
| 252 | - s11_network |
| 253 | - name: VHSSTenant |
| 254 | networks: |
| 255 | - management |
| 256 | - s6a_network |
| 257 | - db_network |
| 258 | links: |
| 259 | - name: HSSDBServiceInstance |
| 260 | networks: |
| 261 | - db_network |
| 262 | - name: HSSDBServiceInstance |
| 263 | networks: |
| 264 | - management |
| 265 | - db_network |
| 266 | |
| 267 | {{- end -}} |