Commit e7c4871d authored by garciadeblas's avatar garciadeblas
Browse files

added VNF and NS packages: basic, multivdu, cloudinit, proxycharm, epasriov, basic_metrics


Signed-off-by: garciadeblas's avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent dccb7c0c
nsd:nsd-catalog:
nsd:
- constituent-vnfd:
- member-vnf-index: '1'
vnfd-id-ref: hackfest_basic_metrics-vnf
description: Simple NS with a single VNF and a single VL and Metrics
id: hackfest_basic-ns-metrics
logo: osm.png
name: hackfest_basic-ns-metrics
short-name: hackfest_basic-ns-metrics
version: '1.0'
vld:
- id: mgmtnet
mgmt-network: 'true'
name: mgntnet
short-name: mgmtnet
type: ELAN
vnfd-connection-point-ref:
- member-vnf-index-ref: '1'
vnfd-connection-point-ref: vnf-cp0
vnfd-id-ref: hackfest_basic_metrics-vnf
#cloud-config
password: osm4u
chpasswd: { expire: False }
ssh_pwauth: True
vnfd:vnfd-catalog:
vnfd:
- id: hackfest_basic_metrics-vnf
name: hackfest_basic_metrics-vnf
short-name: hackfest_basic_metrics-vnf
description: A basic VNF descriptor w/ one VDU and VIM metrics
version: 1.0
logo: osm.png
connection-point:
- name: vnf-cp0
mgmt-interface:
cp: vnf-cp0
vdu:
- name: hackfest_basic_metrics-VM
cloud-init-file: cloud-config
count: 1
id: hackfest_basic_metrics-VM
image: ubuntu16.04
interface:
- name: vdu-eth0
type: EXTERNAL
virtual-interface:
type: PARAVIRT
external-connection-point-ref: vnf-cp0
vm-flavor:
vcpu-count: 1
memory-mb: 1024
storage-gb: 10
monitoring-param:
- id: cpu_util
nfvi-metric: cpu_utilization
- id: memory_util
nfvi-metric: average_memory_utilization
- id: packets_received
nfvi-metric: packets_received
- id: packets_sent
nfvi-metric: packets_sent
monitoring-param:
- id: vnf_cpu_util
name: vnf_cpu_util
aggregation-type: AVERAGE
vdu-monitoring-param:
vdu-monitoring-param-ref: cpu_util
vdu-ref: hackfest_basic_metrics-VM
- id: vnf_memory_util
name: vnf_memory_util
aggregation-type: AVERAGE
vdu-monitoring-param:
vdu-monitoring-param-ref: memory_util
vdu-ref: hackfest_basic_metrics-VM
- id: vnf_packets_sent
name: vnf_packets_sent
aggregation-type: AVERAGE
vdu-monitoring-param:
vdu-monitoring-param-ref: packets_sent
vdu-ref: hackfest_basic_metrics-VM
- id: vnf_packets_received
name: vnf_packets_received
aggregation-type: AVERAGE
vdu-monitoring-param:
vdu-monitoring-param-ref: packets_received
vdu-ref: hackfest_basic_metrics-VM
scaling-group-descriptor:
- name: vdu_autoscale
min-instance-count: 0
max-instance-count: 1
scaling-policy:
- name: cpu_util_above_threshold
scaling-type: automatic
threshold-time: 10
cooldown-time: 120
scaling-criteria:
- name: cpu_util_above_threshold
scale-in-threshold: 10
scale-in-relational-operation: LT
scale-out-threshold: 60
scale-out-relational-operation: GT
vnf-monitoring-param-ref: vnf_cpu_util
vdu:
- vdu-id-ref: hackfest_basic_metrics-VM
count: 1
nsd:nsd-catalog:
nsd:
- id: hackfest_basic-ns
name: hackfest_basic-ns
short-name: hackfest_basic-ns
description: Simple NS with a single VNF and a single VL
version: '1.0'
logo: osm.png
constituent-vnfd:
- vnfd-id-ref: hackfest_basic-vnf
member-vnf-index: '1'
vld:
- id: mgmtnet
name: mgmtnet
short-name: mgmtnet
type: ELAN
mgmt-network: 'true'
vnfd-connection-point-ref:
- vnfd-id-ref: hackfest_basic-vnf
member-vnf-index-ref: '1'
vnfd-connection-point-ref: vnf-cp0
vnfd:vnfd-catalog:
vnfd:
- id: hackfest_basic-vnf
name: hackfest_basic-vnf
short-name: hackfest_basic-vnf
version: 1.0
description: A basic VNF descriptor w/ one VDU
logo: osm.png
connection-point:
- name: vnf-cp0
mgmt-interface:
cp: vnf-cp0
vdu:
- id: hackfest_basic-VM
name: hackfest_basic-VM
image: ubuntu16.04
alternative-images:
- vim-type: aws
image: ubuntu/images/hvm-ssd/ubuntu-artful-17.10-amd64-server-20180509
count: 1
vm-flavor:
vcpu-count: 1
memory-mb: 1024
storage-gb: 10
interface:
- name: vdu-eth0
type: EXTERNAL
virtual-interface:
type: PARAVIRT
external-connection-point-ref: vnf-cp0
nsd:nsd-catalog:
nsd:
- id: hackfest_cloudinit-ns
name: hackfest_cloudinit-ns
short-name: hackfest_cloudinit-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: hackfest_cloudinit-vnf
member-vnf-index: '1'
- vnfd-id-ref: hackfest_cloudinit-vnf
member-vnf-index: '2'
vld:
- id: mgmtnet
name: mgmtnet
short-name: mgmtnet
type: ELAN
mgmt-network: 'true'
vim-network-name: mgmt
vnfd-connection-point-ref:
- vnfd-id-ref: hackfest_cloudinit-vnf
member-vnf-index-ref: '1'
vnfd-connection-point-ref: vnf-mgmt
- vnfd-id-ref: hackfest_cloudinit-vnf
member-vnf-index-ref: '2'
vnfd-connection-point-ref: vnf-mgmt
- id: datanet
name: datanet
short-name: datanet
type: ELAN
vnfd-connection-point-ref:
- vnfd-id-ref: hackfest_cloudinit-vnf
member-vnf-index-ref: '1'
vnfd-connection-point-ref: vnf-data
- vnfd-id-ref: hackfest_cloudinit-vnf
member-vnf-index-ref: '2'
vnfd-connection-point-ref: vnf-data
#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
vnfd:vnfd-catalog:
vnfd:
- id: hackfest_cloudinit-vnf
name: hackfest_cloudinit-vnf
short-name: hackfest_cloudinit-vnf
version: 1.0
description: A VNF consisting of 2 VDUs connected to an internal VL, and one VDU with cloud-init
logo: osm.png
connection-point:
- name: vnf-mgmt
- name: vnf-data
mgmt-interface:
cp: vnf-mgmt
internal-vld:
- id: internal
type: ELAN
internal-connection-point:
- id-ref: mgmtVM-internal
- id-ref: dataVM-internal
vdu:
- id: mgmtVM
name: mgmtVM
image: ubuntu16.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: mgmtVM-eth1
position: 2
type: INTERNAL
virtual-interface:
type: PARAVIRT
internal-connection-point-ref: mgmtVM-internal
internal-connection-point:
- id: mgmtVM-internal
cloud-init-file: cloud-config.txt
- id: dataVM
name: dataVM
image: ubuntu16.04
count: 1
vm-flavor:
vcpu-count: 1
memory-mb: 1024
storage-gb: 10
interface:
- name: dataVM-eth0
position: 1
type: INTERNAL
virtual-interface:
type: PARAVIRT
internal-connection-point-ref: dataVM-internal
- name: dataVM-xe0
position: 2
type: EXTERNAL
virtual-interface:
type: PARAVIRT
external-connection-point-ref: vnf-data
internal-connection-point:
- id: dataVM-internal
nsd:nsd-catalog:
nsd:
- id: hackfest_epasriov-ns
name: hackfest_epasriov-ns
short-name: hackfest_epasriov-ns
description: NS with 2 VNFs hackfest_epasriov-vnf connected by datanet and mgmtnet VLs
version: '1.0'
logo: osm.png
constituent-vnfd:
- vnfd-id-ref: hackfest_epasriov-vnf
member-vnf-index: '1'
- vnfd-id-ref: hackfest_epasriov-vnf
member-vnf-index: '2'
vld:
- id: mgmtnet
name: mgmtnet
short-name: mgmtnet
type: ELAN
mgmt-network: 'true'
vim-network-name: mgmt
vnfd-connection-point-ref:
- vnfd-id-ref: hackfest_epasriov-vnf
member-vnf-index-ref: '1'
vnfd-connection-point-ref: vnf-mgmt
- vnfd-id-ref: hackfest_epasriov-vnf
member-vnf-index-ref: '2'
vnfd-connection-point-ref: vnf-mgmt
- id: datanet
name: datanet
short-name: datanet
type: ELAN
vnfd-connection-point-ref:
- vnfd-id-ref: hackfest_epasriov-vnf
member-vnf-index-ref: '1'
vnfd-connection-point-ref: vnf-data
- vnfd-id-ref: hackfest_epasriov-vnf
member-vnf-index-ref: '2'
vnfd-connection-point-ref: vnf-data
#cloud-config
password: osm4u
chpasswd: { expire: False }
ssh_pwauth: True
write_files:
- encoding: b64
permissions: '0600'
path: /home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qc0F2UHBRcGNlLzE2WTBmN3hzbDVOM3VwcCt5SEhOawp4cnVET0c3bnBTQ3lIS2ZjUWpEdGFIT1BLWWlRLzNDdVhwN09KT3ZqYk5aRmYwR0paQTlYUUE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=
- content: |
# My new helloworld file
owner: root:root
permissions: '0644'
path: /root/helloworld.txt
- content: |
network:
version: 2
ethernets:
eth0:
dhcp4: true
dhcp6: true
eth1:
dhcp4: true
dhcp6: true
owner: root:root
permissions: '0644'
path: /etc/netplan/01-netcfg.yaml
- content: |
#!/bin/sh -eux
ubuntu_version="`lsb_release -r | awk '{print $2}'`";
major_version="`echo $ubuntu_version | awk -F. '{print $1}'`";
if [ "$major_version" -ge "16" ]; then
# Disable Predictable Network Interface names and use eth0
sed -i 's/en[[:alnum:]]*/eth0/g' /etc/network/interfaces;
sed -i 's/GRUB_CMDLINE_LINUX="\(.*\)"/GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 \1"/g' /etc/default/grub;
update-grub;
fi
owner: root:root
permissions: '0750'
path: /root/networking.sh
runcmd:
- [ sh, -c, "chown ubuntu:ubuntu /home/ubuntu/test4.pem" ]
- [ mv, /etc/netplan/50-cloud-init.yaml, /etc/netplan/50-cloud-init.yaml.bak ]
- [ sh, -c, "/root/networking.sh" ]
power_state:
mode: reboot
message: Bye Bye
timeout: 5
condition: True
vnfd:vnfd-catalog:
vnfd:
- id: hackfest_epasriov-vnf
name: hackfest_epasriov-vnf
short-name: hackfest_epasriov-vnf
version: '1.0'
description: A VNF consisting of 2 VDUs with EPA capabilities connected to an internal VL, mgmtVM VDU with cloud-init
logo: osm.png
connection-point:
- name: vnf-mgmt
- name: vnf-data
mgmt-interface:
cp: vnf-mgmt
internal-vld:
- id: internal
type: ELAN
internal-connection-point:
- id-ref: mgmtVM-internal
- id-ref: dataVM-internal
vdu:
- id: mgmtVM
name: mgmtVM
image: ubuntu18.04
count: 1
vm-flavor:
vcpu-count: 1
memory-mb: 1024
storage-gb: 10
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
- name: mgmtVM-eth1
position: 2
type: INTERNAL
virtual-interface:
type: PARAVIRT
internal-connection-point-ref: mgmtVM-internal
internal-connection-point:
- id: mgmtVM-internal
cloud-init-file: cloud-config.txt
- id: dataVM
name: dataVM
image: hackfest-pktgen
count: 1
vm-flavor:
vcpu-count: 8
memory-mb: 4096
storage-gb: 10
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: eth0
position: 1
type: INTERNAL
virtual-interface:
type: PARAVIRT
internal-connection-point-ref: dataVM-internal
- name: xe0
position: '2'
type: EXTERNAL
virtual-interface:
type: SR-IOV
external-connection-point-ref: vnf-data
internal-connection-point:
- id: dataVM-internal
nsd:nsd-catalog:
nsd:
- id: hackfest_multivdu-ns
name: hackfest_multivdu-ns
short-name: hackfest_multivdu-ns
description: NS with 2 VNFs connected by datanet and mgmtnet VLs
version: '1.0'
logo: osm.png
constituent-vnfd:
- vnfd-id-ref: hackfest_multivdu-vnf
member-vnf-index: '1'
- vnfd-id-ref: hackfest_multivdu-vnf
member-vnf-index: '2'
vld:
- id: mgmtnet
name: mgmtnet
short-name: mgmtnet
type: ELAN
mgmt-network: 'true'
vnfd-connection-point-ref:
- vnfd-id-ref: hackfest_multivdu-vnf
member-vnf-index-ref: '1'
vnfd-connection-point-ref: vnf-mgmt
- vnfd-id-ref: hackfest_multivdu-vnf
member-vnf-index-ref: '2'
vnfd-connection-point-ref: vnf-mgmt
- id: datanet
name: datanet
short-name: datanet
type: ELAN
vnfd-connection-point-ref:
- vnfd-id-ref: hackfest_multivdu-vnf
member-vnf-index-ref: '1'
vnfd-connection-point-ref: vnf-data
- vnfd-id-ref: hackfest_multivdu-vnf
member-vnf-index-ref: '2'
vnfd-connection-point-ref: vnf-data
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment