feat(configurations): now VNF/VDU/KDU configurations are in the same place, compatibl...
[osm/IM.git] / tests / examples / vepc_sol006.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:
17   id: vEPC_vnfd
18   product-name: vEPC_vnfd
19   description: Generated by OSM package generator
20   provider: OSM_VNFONB_TF
21   version: "1.0"
22   mgmt-cp: spgwmme-mgmt-ext #Simplified from mgmt-interface
23   virtual-compute-desc:
24     - id: spgwmme-compute
25       virtual-cpu:
26         num-virtual-cpu: 2
27       virtual-memory:
28         size: 4.0 # Memory size in GB
29     - id: hss-compute
30       virtual-cpu:
31         num-virtual-cpu: 1
32       virtual-memory:
33         size: 2.0 # Memory size in GB
34   virtual-storage-desc:
35     - id: spgwmme-storage
36       size-of-storage: 10
37     - id: hss-storage
38       size-of-storage: 10
39   sw-image-desc:
40     - id: nextepc-spgwmme-base
41       name: nextepc-spgwmme-base
42       image: nextepc-spgwmme-base
43     - id: nextepc-hss-base
44       name: nextepc-hss-base
45       image: nextepc-hss-base
46
47   vdu:
48     - id: spgwmme
49       name: spgwmme
50       description: spgwmme
51       cloud-init-file: spgwmme-init
52       virtual-compute-desc: spgwmme-compute
53       virtual-storage-desc:
54         - spgwmme-storage
55       sw-image-desc: nextepc-spgwmme-base
56       int-cpd:
57         - id: eth0-int
58           virtual-network-interface-requirement:
59             - name: eth0
60               virtual-interface:
61                 type: PARAVIRT
62         - id: eth1-int
63           virtual-network-interface-requirement:
64             - name: eth1
65               virtual-interface:
66                 type: PARAVIRT
67         - id: eth2-int
68           virtual-network-interface-requirement:
69             - name: eth2
70               virtual-interface:
71                 type: PARAVIRT
72         - id: eth3-int
73           int-virtual-link-desc: s6a # Connection to VLD!
74           virtual-network-interface-requirement:
75             - name: eth3
76               virtual-interface:
77                 type: PARAVIRT
78       monitoring-parameter:
79         - id: "spgw_cpu_util"
80           name: "spgw_cpu_util"
81           performance-metric: "cpu_utilization"
82         - id: "spgw_memory_util"
83           name: "spgw_memory_util"
84           performance-metric: "average_memory_utilization"
85     - id: hss
86       name: hss
87       description: hss
88       cloud-init-file: hss-init
89       virtual-compute-desc: hss-compute
90       virtual-storage-desc:
91         - hss-storage
92       sw-image-desc: nextepc-hss-base
93       int-cpd:
94         - id: eth0-int
95           virtual-network-interface-requirement:
96             - name: eth0
97               virtual-interface:
98                 type: PARAVIRT
99         - id: eth1-int
100           int-virtual-link-desc: s6a # Connection to VLD!
101           virtual-network-interface-requirement:
102             - name: eth1
103               virtual-interface:
104                 type: PARAVIRT
105   df:
106     - id: default-df
107       vdu-profile:
108         - id: spgwmme
109           min-number-of-instances: 1
110         - id: hss
111           min-number-of-instances: 1
112       instantiation-level:
113         - id: default-instantiation-level
114           vdu-level:
115             - vdu-id: spgwmme
116               number-of-instances: 1
117             - vdu-id: hss
118               number-of-instances: 1
119       virtual-link-profile:
120         - id: s6a
121           flavour: ""
122           virtual-link-protocol-data:
123             l3-protocol-data:
124               name: s6a-l3-protocol-data
125               description: s6a network
126               ip-version: ipv4
127               cidr: 10.0.6.0/24
128               dhcp-enabled: true
129       lcm-operations-configuration:
130         operate-vnf-op-config:
131           day1-2:
132           - id: vEPC_vnfd
133             initial-config-primitive:
134               - seq: "1"
135                 name: config
136                 parameter:
137                   - name: ssh-hostname
138                     value: <rw_mgmt_ip>
139                   - name: ssh-username
140                     value: ubuntu
141                   - name: ssh-password
142                     value: <password>
143               - seq: "2"
144                 name: configure-spgw
145                 parameter:
146                   - name: spgw-ip
147                     data-type: STRING
148                     value: <spgw_ip>
149                   - name: hss-ip
150                     data-type: STRING
151                     value: <hss_ip>
152               - seq: "3"
153                 name: restart-spgw
154             config-primitive:
155               - name: add-route
156                 parameter:
157                   - name: external-prefix
158                     data-type: STRING
159                     default-value: "8.8.8.8/32"
160                   - name: next-hop
161                     data-type: STRING
162                     default-value: "192.168.2.1"
163             juju:
164               charm: spgwcharm
165           - id: hss
166             initial-config-primitive:
167               - seq: "1"
168                 name: config
169                 parameter:
170                   - name: ssh-hostname
171                     value: <rw_mgmt_ip>
172                   - name: ssh-username
173                     value: ubuntu
174                   - name: ssh-password
175                     value: <password>
176               - seq: "2"
177                 name: configure-hss
178                 parameter:
179                   - name: spgw-ip
180                     data-type: STRING
181                     value: <spgw_ip>
182                   - name: hss-ip
183                     data-type: STRING
184                     value: <hss_ip>
185               - seq: "3"
186                 name: restart-hss
187             juju:
188               charm: hsscharm    
189   int-virtual-link-desc:
190     - id: s6a
191   ext-cpd:
192     # SPGWMME
193     - id: spgwmme-mgmt-ext
194       int-cpd: # Connection to int-cpd
195         vdu-id: spgwmme
196         cpd: eth0-int
197     - id: spgwmme-s1-ext
198       int-cpd: # Connection to int-cpd
199         vdu-id: spgwmme
200         cpd: eth1-int
201     - id: spgwmme-sgi-ext
202       int-cpd: # Connection to int-cpd
203         vdu-id: spgwmme
204         cpd: eth2-int
205     # HSS
206     - id: hss-mgmt-ext
207       int-cpd: # Connection to int-cpd
208         vdu-id: hss
209         cpd: eth0-int