nopasswd_k8s_proxy_charm_vnfd.yaml 2.23 KiB
Newer Older
vnfd:vnfd-catalog:
    vnfd:
    -   id: nopasswd_k8s_proxy_charm-vnf
        name: nopasswd_k8s_proxy_charm-vnf
        short-name: nopasswd_k8s_proxy_charm-vnf
        version: 1.0
        description: A VNF consisting of 1 VDU connected to two external VL, and one for data and another one for management
        logo: osm.png
        connection-point:
        -   id: vnf-mgmt
            name: vnf-mgmt
            short-name: vnf-mgmt
            type: VPORT
        -   id: vnf-data
            name: vnf-data
            short-name: vnf-data
            type: VPORT
        mgmt-interface:
            cp: vnf-mgmt
        vdu:
        -   id: mgmtVM
            name: mgmtVM
            image: ubuntu18.04
            count: 1
            vm-flavor:
                vcpu-count: 1
                memory-mb: 1024
                storage-gb: 10
            interface:
            -   name: mgmtVM-eth0
                position: 1
                type: EXTERNAL
                virtual-interface:
                    type: PARAVIRT
                external-connection-point-ref: vnf-mgmt
            -   name: dataVM-xe0
                position: 2
                type: EXTERNAL
                virtual-interface:
                    type: PARAVIRT
                external-connection-point-ref: vnf-data
            cloud-init-file: cloud-config.txt
        vnf-configuration:
            juju:
                charm: simple
                cloud: k8s
            initial-config-primitive:
            -   seq: 1
                name: config
                parameter:
                -   name: ssh-hostname
                    value: <rw_mgmt_ip>
                -   name: ssh-username
                    value: ubuntu
            -   seq: 2
                name: touch
                parameter:
                -   name: filename
                    data-type: STRING
                    value: '/home/ubuntu/first-touch'
            config-primitive:
            -   name: touch
                parameter:
                -   name: filename
                    data-type: STRING
                    default-value: '/home/ubuntu/touched'
            config-access:
                ssh-access:
                    default-user: ubuntu
                    required: true