Update openjdk version to 19 and yang2swagger version to 2.1.0
[osm/IM.git] / tests / examples / vepc_im.yaml
1 #  Copyright 2020 Whitestack LLC
2 #
3 #  Licensed under the Apache License, Version 2.0 (the "License");
4 #  you may not use this file except in compliance with the License.
5 #  You may obtain a copy of the License at
6 #
7 #    http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 #  implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15
16 vnfd:vnfd-catalog:
17   vnfd:
18     - id: vEPC_vnfd
19       name: vEPC_vnfd # To product-name
20       short-name: vEPC_vnfd # Deprecated
21       description: Generated by OSM package generator
22       vendor: OSM_VNFONB_TF # To do provider
23       version: "1.0"
24       mgmt-interface: # To mgmt-cp
25         cp: spgwmme-mgmt
26       ip-profiles: # To deployment flavour (DF)
27         - name: s6a-fefe
28           description: s6a network
29           ip-profile-params:
30             ip-version: ipv4
31             subnet-address: 10.0.6.0/24
32             dhcp-params:
33               enabled: true
34       vdu:
35         - id: spgwmme
36           name: spgwmme
37           description: spgwmme
38           count: 1 # To DF vdu-profile or instantiation-level
39           vm-flavor:
40             vcpu-count: 2
41             memory-mb: 4096
42             storage-gb: 10
43           image: "nextepc-spgwmme-base"
44           cloud-init-file: spgwmme-init
45           interface:
46             - name: eth0
47               type: EXTERNAL
48               virtual-interface:
49                 type: PARAVIRT
50               external-connection-point-ref: spgwmme-mgmt
51             - name: eth1
52               type: EXTERNAL
53               virtual-interface:
54                 type: PARAVIRT
55               external-connection-point-ref: spgwmme-s1
56             - name: eth2
57               type: EXTERNAL
58               virtual-interface:
59                 type: PARAVIRT
60               external-connection-point-ref: spgwmme-sgi
61             - name: eth3
62               type: INTERNAL
63               virtual-interface:
64                 type: PARAVIRT
65               internal-connection-point-ref: spgwmme-s6a
66           internal-connection-point:
67             - id: spgwmme-s6a
68               name: spgwmme-s6a
69               type: VPORT
70           monitoring-param: # To be removed (feature 8157)
71             - id: "spgw_cpu_util"
72               nfvi-metric: "cpu_utilization"
73             - id: "spgw_memory_util"
74               nfvi-metric: "average_memory_utilization"
75         - id: hss
76           name: hss
77           description: hss
78           count: 1
79           vm-flavor:
80             vcpu-count: 1
81             memory-mb: 2048
82             storage-gb: 10
83           image: "nextepc-hss-base"
84           cloud-init-file: hss-init
85           interface:
86             - name: eth0
87               type: EXTERNAL
88               virtual-interface:
89                 type: PARAVIRT
90               mgmt-interface: true
91               external-connection-point-ref: hss-mgmt
92             - name: eth1
93               type: INTERNAL
94               virtual-interface:
95                 type: PARAVIRT
96               internal-connection-point-ref: hss-s6a
97           internal-connection-point:
98             - id: hss-s6a
99               name: hss-s6a
100               type: VPORT
101           vdu-configuration:
102             initial-config-primitive:
103               - seq: "1"
104                 name: config
105                 parameter:
106                   - name: ssh-hostname
107                     value: <rw_mgmt_ip>
108                   - name: ssh-username
109                     value: ubuntu
110                   - name: ssh-password
111                     value: <password>
112               - seq: "2"
113                 name: configure-hss
114                 parameter:
115                   - name: spgw-ip
116                     data-type: STRING
117                     value: <spgw_ip>
118                   - name: hss-ip
119                     data-type: STRING
120                     value: <hss_ip>
121               - seq: "3"
122                 name: restart-hss
123             juju:
124               charm: hsscharm
125       internal-vld:
126         - id: s6a
127           ip-profile-ref: s6a-fefe
128           internal-connection-point:
129             - id-ref: spgwmme-s6a
130             - id-ref: hss-s6a
131           name: s6a
132       connection-point:
133         - name: spgwmme-mgmt
134         - name: spgwmme-s1
135         - name: spgwmme-sgi
136         - name: hss-mgmt
137       vnf-configuration:
138         initial-config-primitive:
139           - seq: "1"
140             name: config
141             parameter:
142               - name: ssh-hostname
143                 value: <rw_mgmt_ip>
144               - name: ssh-username
145                 value: ubuntu
146               - name: ssh-password
147                 value: <password>
148           - seq: "2"
149             name: configure-spgw
150             parameter:
151               - name: spgw-ip
152                 data-type: STRING
153                 value: <spgw_ip>
154               - name: hss-ip
155                 data-type: STRING
156                 value: <hss_ip>
157           - seq: "3"
158             name: restart-spgw
159         config-primitive:
160           - name: add-route
161             parameter:
162               - name: external-prefix
163                 data-type: STRING
164                 default-value: "8.8.8.8/32"
165               - name: next-hop
166                 data-type: STRING
167                 default-value: "192.168.2.1"
168         juju:
169           charm: spgwcharm
170       monitoring-param:
171         - id: "spgw_cpu_util"
172           name: "spgw_cpu_util"
173           aggregation-type: AVERAGE
174           vdu-monitoring-param:
175             vdu-ref: "spgwmme"
176             vdu-monitoring-param-ref: "spgw_cpu_util"
177         - id: "spgw_memory_util"
178           name: "spgw_memory_util"
179           aggregation-type: AVERAGE
180           vdu-monitoring-param:
181             vdu-ref: "spgwmme"
182             vdu-monitoring-param-ref: "spgw_memory_util"