2 # Copyright 2016 RIFT.io Inc
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
20 - vnfd:id: rift_pong_vnf
22 vnfd:short-name: pong_vnf
23 vnfd:logo: rift_logo.png
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
33 - vnfd:config-primitive-name-ref: config
34 vnfd:config-primitive-parameter-ref: ssh-hostname
35 - vnfd:description: SSH username
38 - vnfd:config-primitive-name-ref: config
39 vnfd:config-primitive-parameter-ref: ssh-username
41 - vnfd:attribute: ../../../mgmt-interface/ssh-key, private-key-file
42 vnfd:description: SSH private key file
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
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
56 - vnfd:config-primitive-name-ref: set-server
57 vnfd:config-primitive-parameter-ref: server-port
59 vnfd:connection-point:
60 - vnfd:name: pong_vnfd/cp0
62 - vnfd:name: pong_vnfd/cp1
65 - vnfd:path: api/v1/pong/stats
66 vnfd:polling_interval_secs: '2'
69 vnfd:dashboard-params:
70 vnfd:path: api/v1/pong/stats
73 rw-vnfd:ssh-key: 'true'
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
80 vnfd:json-query-method: NAMEKEY
81 vnfd:name: ping-request-rx-count
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
89 vnfd:json-query-method: NAMEKEY
90 vnfd:name: ping-response-tx-count
93 vnfd:widget-type: COUNTER
94 vnfd:placement-groups:
96 - vnfd:member-vdu-ref: iovdu_0
98 vnfd:requirement: Place this VM on the Kuiper belt object Weywot
99 vnfd:strategy: COLOCATION
102 vnfd:external-interface:
104 vnfd:virtual-interface:
106 vnfd:vnfd-connection-point-ref: pong_vnfd/cp0
108 vnfd:virtual-interface:
110 vnfd:vnfd-connection-point-ref: pong_vnfd/cp1
112 vnfd:image: Fedora-x86_64-20-20131211.1-sda-pong.qcow2
113 vnfd:image-checksum: 977484d95575f80ef8399c9cf1d45ebd
116 vnfd:memory-mb: '512'
119 vnfd:vnf-configuration:
120 vnfd:config-primitive:
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
135 vnfd:read-only: 'true'
136 - vnfd:name: set-server
138 - vnfd:data-type: STRING
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
147 - vnfd:config-primitive-ref: start
149 - vnfd:config-primitive-ref: set-server