X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Ftests%2Funit%2Fcollector%2Fvnf_collectors%2Fvmware%2Fosm_mocks%2FVNFD.json;h=6db19ede4dcb75ca4226a6b91b2d902a845ffe5d;hb=09bcf03e83c5863c3c0bcf47a457e70162fca94e;hp=ed3478908b35533fb4fcdfc73f73e353ea759e71;hpb=730dfd82ef49e2dc1f6d54bb8a1d5e877d4d50b2;p=osm%2FMON.git diff --git a/osm_mon/tests/unit/collector/vnf_collectors/vmware/osm_mocks/VNFD.json b/osm_mon/tests/unit/collector/vnf_collectors/vmware/osm_mocks/VNFD.json index ed34789..6db19ed 100644 --- a/osm_mon/tests/unit/collector/vnf_collectors/vmware/osm_mocks/VNFD.json +++ b/osm_mon/tests/unit/collector/vnf_collectors/vmware/osm_mocks/VNFD.json @@ -1,69 +1,110 @@ { + "_copyright_comment": "Copyright 2016-2019 VMware Inc. This file is part of ETSI OSM All Rights Reserved. Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. For those usages not covered by the Apache License, Version 2.0 please contact: osslegalrouting@vmware.com", + "_id": "cb0da948-7bce-474d-bbcb-6bfce545d397", + "id": "ubuntu_vdu_alarm_vnf", "_admin": { - "created": 1561567611.6193357, - "modified": 1561567611.6193357, + "created": 1562374395.5216513, + "modified": 1562374395.5216513, "onboardingState": "ONBOARDED", "operationalState": "ENABLED", "projects_read": [ - "admin" + "775be778-0f51-495a-b865-a23ab20a080f" ], "projects_write": [ - "admin" + "775be778-0f51-495a-b865-a23ab20a080f" ], "storage": { "descriptor": "cirros_vnf/cirros_vdu_alarm_vnfd.yaml", - "folder": "9d116df6-6fa7-4a5b-b284-a67f554c1261", + "folder": "cb0da948-7bce-474d-bbcb-6bfce545d397", "fs": "local", "path": "/app/storage/", "pkg-dir": "cirros_vnf", - "zipfile": "cirros_vdu_alarm_vnfd.tar.gz" + "zipfile": "package.tar.gz" }, "type": "vnfd", "usageState": "NOT_IN_USE", "userDefinedData": { } }, - "_id": "9d116df6-6fa7-4a5b-b284-a67f554c1261", - "connection-point": [ - { - "name": "eth0", - "type": "VPORT" - } - ], - "description": "Simple VNF example with a cirros and a VNF alarm", - "id": "cirros_vdu_alarm_vnf", - "logo": "cirros-64.png", - "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_vdu_alarm_vnf", - "short-name": "cirros_vdu_alarm_vnf", + "product-name": "ubuntu_vdu_alarm_vnf", + "version": "1.0", "vdu": [ { + "id": "ubuntu_vnfd-VM", + "name": "ubuntu_vnfd-VM", + "int-cpd": [ + { + "virtual-network-interface-requirement": [ + { + "name": "vdu-eth0" + } + ], + "id": "vdu-eth0-int" + } + ], + "virtual-compute-desc": "ubuntu_vnfd-VM-compute", + "virtual-storage-desc": [ + "ubuntu_vnfd-VM-storage" + ], + "sw-image-desc": "ubuntu", + "monitoring-parameter": [ + { + "id": "ubuntu_vnf_cpu_util", + "name": "ubuntu_vnf_cpu_util", + "performance-metric": "cpu_utilization" + }, + { + "id": "ubuntu_vnf_average_memory_utilization", + "name": "ubuntu_vnf_average_memory_utilization", + "performance-metric": "average_memory_utilization" + }, + { + "id": "ubuntu_vnf_packets_sent", + "name": "ubuntu_vnf_packets_sent", + "performance-metric": "packets_sent" + }, + { + "id": "ubuntu_vnf_packets_received", + "name": "ubuntu_vnf_packets_received", + "performance-metric": "packets_received" + }, + { + "id": "ubuntu_vnf_disk_read_ops", + "name": "ubuntu_vnf_disk_read_ops", + "performance-metric": "disk_read_ops" + }, + { + "id": "ubuntu_vnf_disk_write_ops", + "name": "ubuntu_vnf_disk_write_ops", + "performance-metric": "disk_write_ops" + }, + { + "id": "ubuntu_vnf_disk_read_bytes", + "name": "ubuntu_vnf_disk_read_bytes", + "performance-metric": "disk_read_bytes" + }, + { + "id": "ubuntu_vnf_disk_write_bytes", + "name": "ubuntu_vnf_disk_write_bytes", + "performance-metric": "disk_write_bytes" + }, + { + "id": "ubuntu_vnf_packets_out_dropped", + "name": "ubuntu_vnf_packets_out_dropped", + "performance-metric": "packets_out_dropped" + }, + { + "id": "ubuntu_vnf_packets_in_dropped", + "name": "ubuntu_vnf_packets_in_dropped", + "performance-metric": "packets_in_dropped" + } + ], "alarm": [ { + "alarm-id": "alarm-1", + "vnf-monitoring-param-ref": "ubuntu_vnf_cpu_util", "actions": { - "alarm": [ + "ok": [ { "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871" } @@ -73,51 +114,112 @@ "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871" } ], - "ok": [ + "alarm": [ { "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871" } ] }, - "alarm-id": "alarm-1", "operation": "LT", - "value": "20.0000", - "vnf-monitoring-param-ref": "cirros_vnf_cpu_util" + "value": "20.0000" } - ], - "count": "1", - "description": "cirros_vnfd-VM", - "id": "cirros_vnfd-VM", - "image": "ubuntu", - "interface": [ + ] + } + ], + "virtual-compute-desc": [ + { + "id": "ubuntu_vnfd-VM-compute", + "virtual-cpu": { + "num-virtual-cpu": 4 + }, + "virtual-memory": { + "size": 4 + } + } + ], + "virtual-storage-desc": [ + { + "id": "ubuntu_vnfd-VM-storage", + "size-of-storage": 20 + } + ], + "sw-image-desc": [ + { + "id": "ubuntu", + "name": "ubuntu", + "image": "ubuntu" + } + ], + "ext-cpd": [ + { + "int-cpd": { + "vdu-id": "ubuntu_vnfd-VM", + "cpd": "vdu-eth0-int" + }, + "id": "vnf-cp0-ext" + } + ], + "df": [ + { + "id": "default-df", + "vdu-profile": [ { - "external-connection-point-ref": "eth0", - "name": "eth0", - "virtual-interface": { - "bandwidth": "0", - "type": "VIRTIO", - "vpci": "0000:00:0a.0" - } + "id": "ubuntu_vnfd-VM", + "min-number-of-instances": 1, + "max-number-of-instances": 2 } ], - "monitoring-param": [ + "instantiation-level": [ { - "id": "cirros_vnfd-VM_cpu_util", - "nfvi-metric": "cpu_utilization" - }, - { - "id": "cirros_vnfd-VM_average_memory_utilization", - "nfvi-metric": "average_memory_utilization" + "id": "default-instantiation-level", + "vdu-level": [ + { + "vdu-id": "ubuntu_vnfd-VM", + "number-of-instances": 1 + } + ] } ], - "name": "cirros_vnfd-VM", - "vm-flavor": { - "memory-mb": "256", - "storage-gb": "2", - "vcpu-count": 1 - } + "scaling-aspect": [ + { + "id": "cpu_autoscaling_descriptor", + "name": "cpu_autoscaling_descriptor", + "max-scale-level": 1, + "aspect-delta-details": { + "deltas": [ + { + "id": "vdu_autoscale-delta", + "vdu-delta": [ + { + "id": "ubuntu_vnfd-VM", + "number-of-instances": 1 + } + ] + } + ] + }, + "scaling-policy": [ + { + "name": "cpu_scaling_policy", + "scaling-type": "automatic", + "threshold-time": 10, + "cooldown-time": 120, + "scaling-criteria": [ + { + "name": "cpu_autoscaling_criteria", + "scale-in-threshold": "20.0000000000", + "scale-in-relational-operation": "LT", + "scale-out-threshold": "80.0000000000", + "scale-out-relational-operation": "GT", + "vnf-monitoring-param-ref": "ubuntu_vnf_cpu_util" + } + ] + } + ] + } + ] } ], - "vendor": "OSM", - "version": "1.0" -} + "description": "Simple Ubuntu VNF with metric collectors and scaling group", + "mgmt-cp": "vnf-cp0-ext" +} \ No newline at end of file