Revert "Removing deprecated/unused/outdated code"
[osm/RO.git] / RO / test / RO_tests / v3_2vdu_set_ip_mac / scenario_2vdu_set_ip_mac.yaml
1 ##
2 # Licensed under the Apache License, Version 2.0 (the "License"); you may
3 # not use this file except in compliance with the License. You may obtain
4 # a copy of the License at
5 #
6 #         http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11 # License for the specific language governing permissions and limitations
12 # under the License.
13 ##
14 nsd:nsd-catalog:
15     nsd:
16     -   id:          test_2vdu_nsd
17         name:        test_2vdu_nsd_name
18         short-name:  test_2vdu_nsd_sname
19         description: 2 vnfs, eatch one with 3 cirros vdu
20         vendor:      OSM
21         version:     '1.0'
22
23         # Place the logo as png in icons directory and provide the name here
24         logo:        osm_2x.png
25
26         # Specify the VNFDs that are part of this NSD
27         constituent-vnfd:
28             # The member-vnf-index needs to be unique, starting from 1
29             # vnfd-id-ref is the id of the VNFD
30             # Multiple constituent VNFDs can be specified
31         -   member-vnf-index: 1
32             vnfd-id-ref: test_2vdu
33         -   member-vnf-index: 2
34             vnfd-id-ref: test_2vdu2
35
36         ip-profiles:
37         -   description: Inter VNF Link
38             ip-profile-params:
39                 gateway-address: 10.31.31.254
40                 ip-version:      ipv4
41                 subnet-address:  10.31.31.0/24
42                 dns-server:
43                 -   address: 8.8.8.8
44                 -   address: 8.8.8.9 
45                 dhcp-params:
46                   count: 200
47                   start-address: 10.31.31.20
48             name: ipprofileA
49         -   description: IP profile that disables dhcp server
50             ip-profile-params:
51                 dhcp-params:
52                     enabled: 'false'
53                 ip-version: ipv4
54             name: no_dhcp
55
56         vld:
57         # Networks for the VNFs
58         -   id:         vld1
59             name:       mgmt
60             short-name: vld1-sname
61             type:       ELAN
62             mgmt-network: 'true'
63             vnfd-connection-point-ref:
64             -   member-vnf-index-ref: 1
65                 vnfd-id-ref: test_2vdu
66                 vnfd-connection-point-ref: eth0
67             -   member-vnf-index-ref: 2
68                 vnfd-id-ref: test_2vdu2
69                 vnfd-connection-point-ref: eth0
70
71         -   id:         vld2
72             name:       nsd-vld2
73             short-name: vld2-sname
74             type:       ELAN
75             ip-profile-ref: ipprofileA
76             vnfd-connection-point-ref:
77             -   member-vnf-index-ref:      1
78                 vnfd-id-ref:               test_2vdu
79                 vnfd-connection-point-ref: eth1
80                 ip-address:                10.31.31.4
81             -   member-vnf-index-ref:      2
82                 vnfd-id-ref:               test_2vdu2
83                 vnfd-connection-point-ref: eth1
84                 ip-address:                10.31.31.5
85
86         -   id:         vld3
87             name:       nsd-vld3
88             short-name: vld3-sname
89             type:       ELAN
90             ip-profile-ref: no_dhcp
91             vnfd-connection-point-ref:
92             -   member-vnf-index-ref:      1
93                 vnfd-id-ref:               test_2vdu
94                 vnfd-connection-point-ref: eth4
95             -   member-vnf-index-ref:      2
96                 vnfd-id-ref:               test_2vdu2
97                 vnfd-connection-point-ref: eth4