Bug 143 Update ping pong to use charm
[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:short-name: ping_pong_ns
24         nsd:vendor: RIFT.io
25         nsd:version: '1.0'
26         nsd:description: RIFT.io sample ping pong network service
27         nsd:constituent-vnfd:
28         -   nsd:member-vnf-index: '1'
29             nsd:vnfd-id-ref: rift_ping_vnf
30         -   nsd:member-vnf-index: '2'
31             nsd:vnfd-id-ref: rift_pong_vnf
32         nsd:initial-config-primitive:
33         -   nsd:name: start traffic
34             nsd:parameter:
35             -   nsd:name: port
36                 nsd:value: 5555
37             nsd:seq: '1'
38             nsd:user-defined-script: start_traffic.py
39         nsd:input-parameter-xpath:
40         -   nsd:xpath: /nsd:nsd-catalog/nsd:nsd/nsd:vendor
41         nsd:ip-profiles:
42         -   nsd:description: Inter VNF Link
43             nsd:ip-profile-params:
44                 nsd:gateway-address: 31.31.31.210
45                 nsd:ip-version: ipv4
46                 nsd:subnet-address: 31.31.31.0/24
47                 nsd:dhcp-params:
48                   nsd:count: 200
49                   nsd:start-address: 31.31.31.2
50             nsd:name: InterVNFLink
51         nsd:placement-groups:
52         -   nsd:member-vnfd:
53             -   nsd:member-vnf-index-ref: '1'
54                 nsd:vnfd-id-ref: rift_ping_vnf
55             -   nsd:member-vnf-index-ref: '2'
56                 nsd:vnfd-id-ref: rift_pong_vnf
57             nsd:name: Orcus
58             nsd:requirement: Place this VM on the Kuiper belt object Orcus
59             nsd:strategy: COLOCATION
60         -   nsd:member-vnfd:
61             -   nsd:member-vnf-index-ref: '1'
62                 nsd:vnfd-id-ref: rift_ping_vnf
63             -   nsd:member-vnf-index-ref: '2'
64                 nsd:vnfd-id-ref: rift_pong_vnf
65             nsd:name: Quaoar
66             nsd:requirement: Place this VM on the Kuiper belt object Quaoar
67             nsd:strategy: COLOCATION
68         nsd:vld:
69         -   nsd:id: mgmt_vl
70             nsd:vim-network-name: mgmt
71             nsd:description: Management VL
72             nsd:name: mgmt_vl
73             nsd:short-name: mgmt_vl
74             nsd:type: ELAN
75             nsd:vendor: RIFT.io
76             nsd:version: '1.0'
77             nsd:mgmt-network: 'true'
78             nsd:vnfd-connection-point-ref:
79             -   nsd:member-vnf-index-ref: '1'
80                 nsd:vnfd-connection-point-ref: ping_vnfd/cp0
81                 nsd:vnfd-id-ref: rift_ping_vnf
82             -   nsd:member-vnf-index-ref: '2'
83                 nsd:vnfd-connection-point-ref: pong_vnfd/cp0
84                 nsd:vnfd-id-ref: rift_pong_vnf
85         -   nsd:id: ping_pong_vl1
86             nsd:description: Data VL
87             nsd:ip-profile-ref: InterVNFLink
88             nsd:name: data_vl
89             nsd:short-name: data_vl
90             nsd:type: ELAN
91             nsd:vendor: RIFT.io
92             nsd:version: '1.0'
93             nsd:vnfd-connection-point-ref:
94             -   nsd:member-vnf-index-ref: '1'
95                 nsd:vnfd-connection-point-ref: ping_vnfd/cp1
96                 nsd:vnfd-id-ref: rift_ping_vnf
97             -   nsd:member-vnf-index-ref: '2'
98                 nsd:vnfd-connection-point-ref: pong_vnfd/cp1
99                 nsd:vnfd-id-ref: rift_pong_vnf