Merge "- rename pts_ns.yaml"
[osm/devops.git] / src / vnfd / pong_vnf / pong_vnfd.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 vnfd:vnfd-catalog:
19     vnfd:vnfd:
20      -  vnfd:id: rift_pong_vnf
21         vnfd:name: pong_vnf
22         vnfd:short-name: pong_vnf
23         vnfd:logo: rift_logo.png
24         vnfd:vendor: RIFT.io
25         vnfd:version: '1.0'
26         vnfd:description: This is an example RIFT.ware VNF
27         vnfd:config-parameter:
28             vnfd:config-parameter-source:
29             -   vnfd:attribute: ../../../mgmt-interface, ip-address
30                 vnfd:description: Management IP address
31                 vnfd:name: mgmt_ip
32                 vnfd:parameter:
33                 -   vnfd:config-primitive-name-ref: config
34                     vnfd:config-primitive-parameter-ref: ssh-hostname
35             -   vnfd:description: SSH username
36                 vnfd:name: username
37                 vnfd:parameter:
38                 -   vnfd:config-primitive-name-ref: config
39                     vnfd:config-primitive-parameter-ref: ssh-username
40                 vnfd:value: fedora
41             -   vnfd:attribute: ../../../mgmt-interface/ssh-key, private-key-file
42                 vnfd:description: SSH private key file
43                 vnfd:name: ssh_key
44                 vnfd:parameter:
45                 -   vnfd:config-primitive-name-ref: config
46                     vnfd:config-primitive-parameter-ref: ssh-private-key
47             -   vnfd:attribute: ../../../connection-point[name='pong_vnfd/cp1'], ip-address
48                 vnfd:description: IP on which Pong service is listening
49                 vnfd:name: service_ip
50                 vnfd:parameter:
51                 -   vnfd:config-primitive-name-ref: set-server
52                     vnfd:config-primitive-parameter-ref: server-ip
53             -   vnfd:description: Port on which server listens for incoming data packets
54                 vnfd:name: service_port
55                 vnfd:parameter:
56                 -   vnfd:config-primitive-name-ref: set-server
57                     vnfd:config-primitive-parameter-ref: server-port
58                 vnfd:value: '5555'
59         vnfd:connection-point:
60         -   vnfd:name: pong_vnfd/cp0
61             vnfd:type: VPORT
62         -   vnfd:name: pong_vnfd/cp1
63             vnfd:type: VPORT
64         vnfd:http-endpoint:
65         -   vnfd:path: api/v1/pong/stats
66             vnfd:polling_interval_secs: '2'
67             vnfd:port: '18889'
68         vnfd:mgmt-interface:
69             vnfd:dashboard-params:
70                 vnfd:path: api/v1/pong/stats
71                 vnfd:port: '18889'
72             vnfd:port: '18889'
73             vnfd:ssh-key: 'true'
74             vnfd:vdu-id: iovdu_0
75         vnfd:monitoring-param:
76         -   vnfd:description: no of ping requests
77             vnfd:group-tag: Group1
78             vnfd:http-endpoint-ref: api/v1/pong/stats
79             vnfd:id: '1'
80             vnfd:json-query-method: NAMEKEY
81             vnfd:name: ping-request-rx-count
82             vnfd:units: packets
83             vnfd:value-type: INT
84             vnfd:widget-type: COUNTER
85         -   vnfd:description: no of ping responses
86             vnfd:group-tag: Group1
87             vnfd:http-endpoint-ref: api/v1/pong/stats
88             vnfd:id: '2'
89             vnfd:json-query-method: NAMEKEY
90             vnfd:name: ping-response-tx-count
91             vnfd:units: packets
92             vnfd:value-type: INT
93             vnfd:widget-type: COUNTER
94         vnfd:placement-groups:
95         -   vnfd:member-vdus:
96             -   vnfd:member-vdu-ref: iovdu_0
97             vnfd:name: Weywot
98             vnfd:requirement: Place this VM on the Kuiper belt object Weywot
99             vnfd:strategy: COLOCATION
100         vnfd:vdu:
101         -   vnfd:count: '1'
102             vnfd:external-interface:
103             -   vnfd:name: eth0
104                 vnfd:virtual-interface:
105                     vnfd:type: VIRTIO
106                 vnfd:vnfd-connection-point-ref: pong_vnfd/cp0
107             -   vnfd:name: eth1
108                 vnfd:virtual-interface:
109                     vnfd:type: VIRTIO
110                 vnfd:vnfd-connection-point-ref: pong_vnfd/cp1
111             vnfd:id: iovdu_0
112             vnfd:image: Fedora-x86_64-20-20131211.1-sda-pong.qcow2
113             vnfd:image-checksum: 977484d95575f80ef8399c9cf1d45ebd
114             vnfd:name: iovdu_0
115             vnfd:vm-flavor:
116                 vnfd:memory-mb: '512'
117                 vnfd:storage-gb: '4'
118                 vnfd:vcpu-count: '1'
119         vnfd:vnf-configuration:
120             vnfd:config-primitive:
121             -   vnfd:name: start
122             -   vnfd:name: stop
123             -   vnfd:name: restart
124             -   vnfd:name: config
125                 vnfd:parameter:
126                 -   vnfd:data-type: STRING
127                     vnfd:name: ssh-hostname
128                 -   vnfd:data-type: STRING
129                     vnfd:name: ssh-username
130                 -   vnfd:data-type: STRING
131                     vnfd:name: ssh-private-key
132                 -   vnfd:data-type: STRING
133                     vnfd:default-value: pong
134                     vnfd:name: mode
135                     vnfd:read-only: 'true'
136             -   vnfd:name: set-server
137                 vnfd:parameter:
138                 -   vnfd:data-type: STRING
139                     vnfd:name: server-ip
140                 -   vnfd:data-type: INTEGER
141                     vnfd:name: server-port
142             -   vnfd:name: start-traffic
143             -   vnfd:name: stop-traffic
144             vnfd:initial-config-primitive:
145             -   vnfd:config-primitive-ref: config
146                 vnfd:seq: '1'
147             -   vnfd:config-primitive-ref: start
148                 vnfd:seq: '2'
149             -   vnfd:config-primitive-ref: set-server
150                 vnfd:seq: '3'
151             vnfd:juju:
152                 vnfd:charm: pingpong