Updates sol006 branch with master
[osm/IM.git] / augments / examples / vepc_new.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-int #Simplified from mgmt-interface
23
24     virtual-compute-desc:
25       - id: spgwmme-compute
26         virtual-cpu:
27           num-virtual-cpu: 2
28         virtual-memory:
29           size: 4 # Memory size in GB
30       - id: hss-compute
31         virtual-cpu:
32           num-virtual-cpu: 1
33         virtual-memory:
34           size: 2 # Memory size in GB
35
36     virtual-storage-desc:
37       - id: spgwmme-storage
38         size-of-storage: 10
39       - id: hss-storage
40         size-of-storage: 10
41
42     sw-image-desc:
43       - id: nextepc-spgwmme-base
44         name: nextepc-spgwmme-base
45         checksum:
46           hash: # Mandatory?
47       - id: nextepc-hss-bas
48         name: nextepc-hss-bas
49         checksum:
50           hash: # Mandatory?
51
52     vdu:
53       - id: spgwmme
54         name: spgwmme
55         description: spgwmme
56         cloud-init-file: spgwmme-init
57         virtual-compute-desc: spgwmme-compute
58         virtual-storage-desc: spgwmme-storage
59         sw-image-desc: nextepc-spgwmme-base
60         int-cpd:
61           - id: spgwmme-mgmt-int
62             virtual-network-interface-requirement:
63               - name: eth0
64                 virtual-interface:
65                   type: PARAVIRT
66           - id: spgwmme-s1-int
67             virtual-network-interface-requirement:
68               - name: eth1
69                 virtual-interface:
70                   type: PARAVIRT
71           - id: spgwmme-sgi-int
72             virtual-network-interface-requirement:
73               - name: eth2
74                 virtual-interface:
75                   type: PARAVIRT
76           - id: spgwmme-s6a-int
77             int-virtual-link-desc: s6a # Connection to VLD!
78             virtual-network-interface-requirement:
79               - id: eth3
80                 virtual-interface:
81                   type: PARAVIRT
82
83       - id: hss
84         name: hss
85         description: hss
86         cloud-init-file: hss-init
87         virtual-compute-desc: hss-compute
88         virtual-storage-desc: hss-storage
89         sw-image-desc: nextepc-hss-bas
90         int-cpd:
91           - id: hss-mgmt-int
92             virtual-network-interface-requirement:
93               - name: eth0
94                 virtual-interface:
95                   type: PARAVIRT
96           - id: hss-s6a-int
97             int-virtual-link-desc: s6a # Connection to VLD!
98             virtual-network-interface-requirement:
99               - id: eth1
100                 virtual-interface:
101                   type: PARAVIRT
102
103     df:
104       - id: vepc_default
105         vnf-configuration-id: vnf-configuration-example
106         vdu-profile:
107           - id: spgwmme
108             min-number-of-instance: 1
109           - id: hss
110             min-number-of-instance: 1
111             vdu-configuration-id: vdu-configuration-example
112         instantiation-level:
113           - id: default
114             vdu-level:
115               - id: spgwmme
116                 number-of-instances: 1
117               - 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
125                 description: s6a network
126                 ip-version: ipv4
127                 cidr: 10.0.6.0/24
128                 dhcp-enabled: true
129
130         monitoring-parameter:
131           - id: "spgw_cpu_util"
132             name: "spgw_cpu_util"
133             performance-metric: "cpu_load"
134             collection-period: 123456
135
136             aggregation-type: AVERAGE # Not included in augments
137             vdu-monitoring-param: # Not included in augments
138               vdu-ref: "spgwmme" # Not included in augments
139               vdu-monitoring-param-ref: "spgw_cpu_util" # Not included in augments
140           - id: "spgw_memory_util"
141             name: "spgw_memory_util"
142             aggregation-type: AVERAGE # Not included in augments
143             vdu-monitoring-param: # Not included in augments
144               vdu-ref: "spgwmme" # Not included in augments
145               vdu-monitoring-param-ref: "spgw_memory_util" # Not included in augments
146
147     vdu-configuration:
148       - id: vdu-configuration-example
149         initial-config-primitive:
150           - seq: "1"
151             name: config
152             parameter:
153               - name: ssh-hostname
154                 value: <rw_mgmt_ip>
155               - name: ssh-username
156                 value: ubuntu
157               - name: ssh-password
158                 value: <password>
159           - seq: "2"
160             name: configure-hss
161             parameter:
162               - name: spgw-ip
163                 data-type: STRING
164                 value: <spgw_ip>
165               - name: hss-ip
166                 data-type: STRING
167                 value: <hss_ip>
168           - seq: "3"
169             name: restart-hss
170         juju:
171           charm: hsscharm
172
173     vnf-configuration:
174       - id: vnf-configuration-example
175         initial-config-primitive:
176           - seq: "1"
177             name: config
178             parameter:
179               - name: ssh-hostname
180                 value: <rw_mgmt_ip>
181               - name: ssh-username
182                 value: ubuntu
183               - name: ssh-password
184                 value: <password>
185           - seq: "2"
186             name: configure-spgw
187             parameter:
188               - name: spgw-ip
189                 data-type: STRING
190                 value: <spgw_ip>
191               - name: hss-ip
192                 data-type: STRING
193                 value: <hss_ip>
194           - seq: "3"
195             name: restart-spgw
196         config-primitive:
197           - name: add-route
198             parameter:
199               - name: external-prefix
200                 data-type: STRING
201                 default-value: "8.8.8.8/32"
202               - name: next-hop
203                 data-type: STRING
204                 default-value: "192.168.2.1"
205         juju:
206           charm: spgwcharm
207
208     int-virtual-link-desc:
209       - id: s6a
210
211     exp-cpd:
212       # SPGWMME
213       - id: spgwmme-mgmt-ext
214         int-cpd: # Connection to int-cpd
215           vdu-id: spgwmme
216           cpd: spgwmme-mgmt-int
217       - id: spgwmme-s1-ext
218         int-cpd: # Connection to int-cpd
219           vdu-id: spgwmme
220           cpd: spgwmme-mgmt-int
221       - id: spgwmme-sgi-ext
222         int-cpd: # Connection to int-cpd
223           vdu-id: spgwmme
224           cpd: spgwmme-mgmt-int
225
226       # HSS
227       - id: hss-mgmt-ext
228         int-cpd: # Connection to int-cpd
229           vdu-id: spgwmme
230           cpd: spgwmme-mgmt-int