Skip to content
Snippets Groups Projects
ping_vnfd.yaml 3.88 KiB
Newer Older
#
#   Copyright 2016 RIFT.io Inc
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
#

vnfd:vnfd-catalog:
     -  id: rift_ping_vnf
        name: ping_vnf
        short-name: ping_vnf
        logo: rift_logo.png
        vendor: RIFT.io
        description: This is an example RIFT.ware VNF
        connection-point:
        -   name: ping_vnfd/cp0
            type: VPORT
        -   name: ping_vnfd/cp1
            type: VPORT
        http-endpoint:
        -   path: api/v1/ping/stats
            port: '18888'
        mgmt-interface:
            dashboard-params:
                path: api/v1/ping/stats
                port: '18888'
            port: '18888'
        placement-groups:
        -   member-vdus:
            -   member-vdu-ref: iovdu_0
            name: Eris
            requirement: Place this VM on the Kuiper belt object Eris
            strategy: COLOCATION
        vdu:
        -   cloud-init-file: ping_cloud_init.cfg
            count: '1'
            -   name: eth0
                position: 0
                type: EXTERNAL
                virtual-interface:
                    type: VIRTIO
                external-connection-point-ref: ping_vnfd/cp0
            -   name: eth1
                position: 1
                type: EXTERNAL
                virtual-interface:
                    type: VIRTIO
                external-connection-point-ref: ping_vnfd/cp1
            id: iovdu_0
            image: Fedora-x86_64-20-20131211.1-sda-ping.qcow2
            name: iovdu_0
            vm-flavor:
                memory-mb: '512'
                storage-gb: '4'
                vcpu-count: '1'
        vnf-configuration:
            config-primitive:
            -   name: start
            -   name: stop
            -   name: restart
            -   name: config
                parameter:
                -   data-type: STRING
                    default-value: <rw_mgmt_ip>
                    name: ssh-hostname
                -   data-type: STRING
                    default-value: fedora
                    name: ssh-username
                -   data-type: STRING
                    default-value: fedora
                    name: ssh-password
                -   data-type: STRING
                    name: ssh-private-key
                -   data-type: STRING
                    default-value: ping
                    name: mode
                    read-only: 'true'
            -   name: set-server
                parameter:
                -   data-type: STRING
                    name: server-ip
                -   data-type: INTEGER
                    name: server-port
            -   name: set-rate
                parameter:
                -   data-type: INTEGER
                    default-value: '5'
                    name: rate
            -   name: start-traffic
            -   name: stop-traffic
            initial-config-primitive:
            -   name: config
                parameter:
                -   name: ssh-hostname
                    value: <rw_mgmt_ip>
                -   name: ssh-username
                    value: fedora
                -   name: ssh-password
                    value: fedora
                -   name: mode
                    value: ping
                seq: '1'
            -   name: start
                seq: '2'
            juju:
                charm: pingpong