Merge "- add copyright"
[osm/devops.git] / src / nsd / ping_pong_ns / ping_pong_nsd.yaml
1 #
2 #   Copyright 2016 RIFT.io Inc
3 #
4 #   Licensed under the Apache License, Version 2.0 (the "License");
5 #   you may not use this file except in compliance with the License.
6 #   You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #   Unless required by applicable law or agreed to in writing, software
11 #   distributed under the License is distributed on an "AS IS" BASIS,
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #   See the License for the specific language governing permissions and
14 #   limitations under the License.
15 #
16 #
17
18 nsd:nsd-catalog:
19     nsd:nsd:
20      -  nsd:id: rift_ping_pong_ns
21         nsd:logo: rift_logo.png
22         nsd:name: ping_pong_ns
23         nsd:description: RIFT.io sample ping pong network service
24         nsd:config-parameter-map:
25         -   nsd:config-parameter-request:
26                 nsd:config-parameter-request-ref: pong_ip
27                 nsd:member-vnf-index-ref: '1'
28             nsd:config-parameter-source:
29                 nsd:config-parameter-source-ref: service_ip
30                 nsd:member-vnf-index-ref: '2'
31             nsd:id: '1'
32         -   nsd:config-parameter-request:
33                 nsd:config-parameter-request-ref: pong_port
34                 nsd:member-vnf-index-ref: '1'
35             nsd:config-parameter-source:
36                 nsd:config-parameter-source-ref: service_port
37                 nsd:member-vnf-index-ref: '2'
38             nsd:id: '2'
39         nsd:constituent-vnfd:
40         -   nsd:member-vnf-index: '1'
41             nsd:vnfd-id-ref: rift_ping_vnf
42         -   nsd:member-vnf-index: '2'
43             nsd:vnfd-id-ref: rift_pong_vnf
44         nsd:initial-config-primitive:
45         -   nsd:name: start traffic
46             nsd:parameter:
47             -   nsd:name: userid
48                 nsd:value: rift
49             nsd:seq: '1'
50             nsd:user-defined-script: start_traffic.py
51         nsd:input-parameter-xpath:
52         -   nsd:xpath: /nsd:nsd-catalog/nsd:nsd/nsd:vendor
53         nsd:ip-profiles:
54         -   nsd:description: Inter VNF Link
55             nsd:ip-profile-params:
56                 nsd:gateway-address: 31.31.31.210
57                 nsd:ip-version: ipv4
58                 nsd:subnet-address: 31.31.31.0/24
59                 nsd:dhcp-params:
60                   nsd:count: 200
61                   nsd:start-address: 31.31.31.2
62             nsd:name: InterVNFLink
63         nsd:placement-groups:
64         -   nsd:member-vnfd:
65             -   nsd:member-vnf-index-ref: '1'
66                 nsd:vnfd-id-ref: rift_ping_vnf
67             -   nsd:member-vnf-index-ref: '2'
68                 nsd:vnfd-id-ref: rift_pong_vnf
69             nsd:name: Orcus
70             nsd:requirement: Place this VM on the Kuiper belt object Orcus
71             nsd:strategy: COLOCATION
72         -   nsd:member-vnfd:
73             -   nsd:member-vnf-index-ref: '1'
74                 nsd:vnfd-id-ref: rift_ping_vnf
75             -   nsd:member-vnf-index-ref: '2'
76                 nsd:vnfd-id-ref: rift_pong_vnf
77             nsd:name: Quaoar
78             nsd:requirement: Place this VM on the Kuiper belt object Quaoar
79             nsd:strategy: COLOCATION
80         nsd:short-name: ping_pong_nsd
81         nsd:vendor: RIFT.io
82         nsd:version: '1.0'
83         nsd:vld:
84         -   nsd:id: mgmt_vl
85             nsd:vim-network-name: mgmt
86             nsd:description: Management VL
87             nsd:name: mgmt_vl
88             nsd:short-name: mgmt_vl
89             nsd:type: ELAN
90             nsd:vendor: RIFT.io
91             nsd:version: '1.0'
92             nsd:mgmt-network: 'true'
93             nsd:vnfd-connection-point-ref:
94             -   nsd:member-vnf-index-ref: '1'
95                 nsd:vnfd-connection-point-ref: ping_vnfd/cp0
96                 nsd:vnfd-id-ref: rift_ping_vnf
97             -   nsd:member-vnf-index-ref: '2'
98                 nsd:vnfd-connection-point-ref: pong_vnfd/cp0
99                 nsd:vnfd-id-ref: rift_pong_vnf
100         -   nsd:id: ping_pong_vl1
101             nsd:description: Data VL
102             nsd:ip-profile-ref: InterVNFLink
103             nsd:name: data_vl
104             nsd:short-name: data_vl
105             nsd:type: ELAN
106             nsd:vendor: RIFT.io
107             nsd:version: '1.0'
108             nsd:vnfd-connection-point-ref:
109             -   nsd:member-vnf-index-ref: '1'
110                 nsd:vnfd-connection-point-ref: ping_vnfd/cp1
111                 nsd:vnfd-id-ref: rift_ping_vnf
112             -   nsd:member-vnf-index-ref: '2'
113                 nsd:vnfd-connection-point-ref: pong_vnfd/cp1
114                 nsd:vnfd-id-ref: rift_pong_vnf