diff --git a/cirros_alarm_ns/cirros_alarm_nsd.yaml b/cirros_alarm_ns/cirros_alarm_nsd.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4d0b9c34c266959a3e3df40403777230f0460ffe --- /dev/null +++ b/cirros_alarm_ns/cirros_alarm_nsd.yaml @@ -0,0 +1,21 @@ +nsd-catalog: + nsd: + - id: cirros_alarm-ns + name: cirros_alarm-ns + short-name: cirros_alarm-ns + description: Simple NS example with a cirros_alarm-vnf + vendor: OSM + version: '1.0' + constituent-vnfd: + - member-vnf-index: '1' + vnfd-id-ref: cirros_alarm-vnf + vld: + - id: mgmtnet + name: mgmtnet + short-name: mgmtnet + type: ELAN + mgmt-network: true + vnfd-connection-point-ref: + - member-vnf-index-ref: '1' + vnfd-id-ref: cirros_alarm-vnf + vnfd-connection-point-ref: eth0 diff --git a/cirros_alarm_vnf/cirros_alarm_vnfd.yaml b/cirros_alarm_vnf/cirros_alarm_vnfd.yaml new file mode 100644 index 0000000000000000000000000000000000000000..71d708c677ee70b831464ab25c3510470112d57c --- /dev/null +++ b/cirros_alarm_vnf/cirros_alarm_vnfd.yaml @@ -0,0 +1,62 @@ +vnfd-catalog: + vnfd: + - connection-point: + - name: eth0 + type: VPORT + description: Simple VNF example with a cirros and a VNF alarm + id: cirros_alarm-vnf + mgmt-interface: + cp: eth0 + monitoring-param: + - aggregation-type: AVERAGE + id: cirros_vnf_cpu_util + name: cirros_vnf_cpu_util + vdu-monitoring-param: + vdu-monitoring-param-ref: cirros_vnfd-VM_cpu_util + vdu-ref: cirros_vnfd-VM + - aggregation-type: AVERAGE + id: cirros_vnf_average_memory_utilization + name: cirros_vnf_average_memory_utilization + vdu-monitoring-param: + vdu-monitoring-param-ref: cirros_vnfd-VM_average_memory_utilization + vdu-ref: cirros_vnfd-VM + name: cirros_alarm-vnf + short-name: cirros_alarm-vnf + vdu: + - alarm: + - alarm-id: alarm-1 + operation: LT + value: 20 + actions: + alarm: + - url: https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871 + ok: + - url: https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871 + insufficient-data: + - url: https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871 + vnf-monitoring-param-ref: cirros_vnf_cpu_util + count: 1 + description: cirros_vnfd-VM + id: cirros_vnfd-VM + image: cirros + interface: + - external-connection-point-ref: eth0 + name: eth0 + type: EXTERNAL + virtual-interface: + bandwidth: 0 + type: VIRTIO + vpci: 0000:00:0a.0 + monitoring-param: + - id: cirros_vnfd-VM_cpu_util + nfvi-metric: cpu_utilization + - id: cirros_vnfd-VM_average_memory_utilization + nfvi-metric: average_memory_utilization + name: cirros_vnfd-VM + vm-flavor: + memory-mb: 256 + storage-gb: 2 + vcpu-count: 1 + vendor: OSM + version: '1.0' +