vnfd:vnfd-catalog: vnfd: - id: cirros_vdu_scaling_vnf name: cirros_vdu_scaling_vnf short-name: cirros_vdu_scaling_vnf description: Simple VNF example with a cirros and a scaling group descriptor vendor: OSM version: '1.0' # Place the logo as png in icons directory and provide the name here logo: cirros-64.png # Management vdu id mgmt-interface: vdu-id: cirros_vnfd-VM # Atleast one VDU need to be specified vdu: - id: cirros_vnfd-VM name: cirros_vnfd-VM description: cirros_vnfd-VM count: 1 # Flavour of the VM to be instantiated for the VDU # flavor below can fit into m1.micro vm-flavor: vcpu-count: 1 memory-mb: 256 storage-gb: 2 # Image/checksum or image including the full path image: 'cirros034' #checksum: interface: # Specify the external interfaces # There can be multiple interfaces defined - name: eth0 type: EXTERNAL virtual-interface: type: VIRTIO bandwidth: '0' vpci: 0000:00:0a.0 external-connection-point-ref: eth0 monitoring-param: - id: "cirros_vnfd-VM_cpu_util" nfvi-metric: "cpu_utilization" # The associated NFVI metric to be monitored. Id of the metric #interface-name-ref: reference to interface name, required for some metrics connection-point: - name: eth0 type: VPORT scaling-group-descriptor: - name: "scale_cirros_vnfd-VM" min-instance-count: 1 max-instance-count: 10 scaling-policy: - name: "auto_cpu_util_above_threshold" scaling-type: "automatic" threshold-time: 10 cooldown-time: 60 scaling-criteria: - name: "group1_cpu_util_above_threshold" scale-in-threshold: 20 scale-in-relational-operation: "LT" scale-out-threshold: 80 scale-out-relational-operation: "GT" vnf-monitoring-param-ref: "cirros_vnf_cpu_util" vdu: - vdu-id-ref: cirros_vnfd-VM count: 1 # scaling-config-action: # Para utilizar charms # - trigger: post-scale-out # vnf-config-primitive-name-ref: monitoring-param: - id: "cirros_vnf_cpu_util" name: "cirros_vnf_cpu_util" aggregation-type: AVERAGE vdu-monitoring-param: vdu-ref: "cirros_vnfd-VM" vdu-monitoring-param-ref: "cirros_vnfd-VM_cpu_util"