268504cc50b2ecd0a1d049672dd9b4e6fed62bb4
[osm/devops.git] / descriptor-packages / 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.1'
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:name: ssh-username
38                 nsd:value: fedora
39             -   nsd:name: ssh-password
40                 nsd:value: fedora
41             nsd:seq: '1'
42             nsd:user-defined-script: start_traffic.py
43         nsd:input-parameter-xpath:
44         -   nsd:xpath: /nsd:nsd-catalog/nsd:nsd/nsd:vendor
45         nsd:ip-profiles:
46         -   nsd:description: Inter VNF Link
47             nsd:ip-profile-params:
48                 nsd:gateway-address: 31.31.31.210
49                 nsd:ip-version: ipv4
50                 nsd:subnet-address: 31.31.31.0/24
51                 nsd:dhcp-params:
52                   nsd:count: 200
53                   nsd:start-address: 31.31.31.2
54             nsd:name: InterVNFLink
55         nsd:placement-groups:
56         -   nsd:member-vnfd:
57             -   nsd:member-vnf-index-ref: '1'
58                 nsd:vnfd-id-ref: rift_ping_vnf
59             -   nsd:member-vnf-index-ref: '2'
60                 nsd:vnfd-id-ref: rift_pong_vnf
61             nsd:name: Orcus
62             nsd:requirement: Place this VM on the Kuiper belt object Orcus
63             nsd:strategy: COLOCATION
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: Quaoar
70             nsd:requirement: Place this VM on the Kuiper belt object Quaoar
71             nsd:strategy: COLOCATION
72         nsd:vld:
73         -   nsd:id: mgmt_vl
74             nsd:description: Management VL
75             nsd:name: mgmt_vl
76             nsd:short-name: mgmt_vl
77             nsd:type: ELAN
78             nsd:vendor: RIFT.io
79             nsd:version: '1.0'
80             nsd:mgmt-network: 'true'
81             nsd:vnfd-connection-point-ref:
82             -   nsd:member-vnf-index-ref: '1'
83                 nsd:vnfd-connection-point-ref: ping_vnfd/cp0
84                 nsd:vnfd-id-ref: rift_ping_vnf
85             -   nsd:member-vnf-index-ref: '2'
86                 nsd:vnfd-connection-point-ref: pong_vnfd/cp0
87                 nsd:vnfd-id-ref: rift_pong_vnf
88         -   nsd:id: ping_pong_vl1
89             nsd:description: Data VL
90             nsd:ip-profile-ref: InterVNFLink
91             nsd:name: data_vl
92             nsd:short-name: data_vl
93             nsd:type: ELAN
94             nsd:vendor: RIFT.io
95             nsd:version: '1.0'
96             nsd:vnfd-connection-point-ref:
97             -   nsd:member-vnf-index-ref: '1'
98                 nsd:vnfd-connection-point-ref: ping_vnfd/cp1
99                 nsd:vnfd-id-ref: rift_ping_vnf
100             -   nsd:member-vnf-index-ref: '2'
101                 nsd:vnfd-connection-point-ref: pong_vnfd/cp1
102                 nsd:vnfd-id-ref: rift_pong_vnf