diff --git a/simple_ee_ns/icons/osm.png b/simple_ee_ns/icons/osm.png new file mode 100644 index 0000000000000000000000000000000000000000..62012d2a2b491bdcd536d62c3c3c863c0d8c1b33 Binary files /dev/null and b/simple_ee_ns/icons/osm.png differ diff --git a/simple_ee_ns/simple_ee_nsd.yaml b/simple_ee_ns/simple_ee_nsd.yaml new file mode 100644 index 0000000000000000000000000000000000000000..21e8af130cbd78709f4192da9b5db2b6bb13687f --- /dev/null +++ b/simple_ee_ns/simple_ee_nsd.yaml @@ -0,0 +1,22 @@ +nsd:nsd-catalog: + nsd: + - id: simple_ee-ns + name: simple_ee-ns + short-name: simple_ee-ns + description: NS with 2 VNFs with cloudinit connected by datanet and mgmtnet VLs + version: 1.0 + logo: osm.png + constituent-vnfd: + - vnfd-id-ref: simple_ee-vnf + member-vnf-index: simple + vld: + - id: mgmtnet + name: mgmtnet + short-name: mgmtnet + type: ELAN + mgmt-network: true + vim-network-name: osm-ext + vnfd-connection-point-ref: + - vnfd-id-ref: simple_ee-vnf + member-vnf-index-ref: simple + vnfd-connection-point-ref: vnf-mgmt diff --git a/simple_ee_vnf/cloud_init/cloud-config.txt b/simple_ee_vnf/cloud_init/cloud-config.txt new file mode 100755 index 0000000000000000000000000000000000000000..e22d345c183842dfd2f6a03b28040ce70f72c5b3 --- /dev/null +++ b/simple_ee_vnf/cloud_init/cloud-config.txt @@ -0,0 +1,12 @@ +#cloud-config +password: osm4u +chpasswd: { expire: False } +ssh_pwauth: True + +write_files: +- content: | + # My new helloworld file + + owner: root:root + permissions: '0644' + path: /root/helloworld.txt diff --git a/simple_ee_vnf/helm-charts/eechart-0.1.0.tgz b/simple_ee_vnf/helm-charts/eechart-0.1.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..98527426330dc335baa22798114771e45df27c6f Binary files /dev/null and b/simple_ee_vnf/helm-charts/eechart-0.1.0.tgz differ diff --git a/simple_ee_vnf/icons/osm.png b/simple_ee_vnf/icons/osm.png new file mode 100644 index 0000000000000000000000000000000000000000..62012d2a2b491bdcd536d62c3c3c863c0d8c1b33 Binary files /dev/null and b/simple_ee_vnf/icons/osm.png differ diff --git a/simple_ee_vnf/simple_ee_vnfd.yaml b/simple_ee_vnf/simple_ee_vnfd.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9f669473044845583371366b19fe14ef11dd2c23 --- /dev/null +++ b/simple_ee_vnf/simple_ee_vnfd.yaml @@ -0,0 +1,82 @@ +vnfd:vnfd-catalog: + vnfd: + - id: simple_ee-vnf + name: simple_ee-vnf + short-name: simple_ee-vnf + version: "1.0" + description: A VNF consisting of 1 VDU with cloud-init, and a monitoring ee + logo: osm.png + connection-point: + - id: vnf-mgmt + name: vnf-mgmt + short-name: vnf-mgmt + type: VPORT + mgmt-interface: + cp: vnf-mgmt + vdu: + - id: mgmtVM + name: mgmtVM + image: ubuntu16.04 + count: 1 + vm-flavor: + vcpu-count: 1 + memory-mb: 1024 + storage-gb: 20 + guest-epa: + cpu-pinning-policy: DEDICATED + cpu-thread-pinning-policy: PREFER + mempage-size: LARGE + numa-node-policy: + mem-policy: STRICT + node-cnt: '1' + node: + - id: '1' + interface: + - name: mgmtVM-eth0 + position: 1 + type: EXTERNAL + virtual-interface: + type: PARAVIRT + external-connection-point-ref: vnf-mgmt + cloud-init-file: cloud-config.txt + vnf-configuration: + config-access: + ssh-access: + default-user: ubuntu + required: true + #juju: + # charm: simple-proxy + execution-environment-list: + - id: monitor + helm-chart: eechart-0.1.0.tgz + metric-service: monitor-snmp-exporter + connection-point-ref: vnf-monitor-cp + initial-config-primitive: + - seq: "1" + name: config + execution-environment-ref: monitor + parameter: + - name: ssh-hostname + value: + - name: ssh-username + value: ubuntu + - name: ssh-password + value: osm4u + - seq: "2" + name: touch + execution-environment-ref: monitor + parameter: + - name: file-path + value: "/home/ubuntu/first-touch" + config-primitive: + - name: touch + execution-environment-ref: monitor + execution-environment-primitive: touch + parameter: + - name: file-path + default-value: "/home/ubuntu/touched" + data-type: STRING + - name: sleep + execution-environment-ref: monitor + execution-environment-primitive: sleep +