summaryrefslogtreecommitdiffstats
path: root/app/main/dashboard/dcaedt
diff options
context:
space:
mode:
authork.kedron <k.kedron@partner.samsung.com>2019-08-02 16:44:07 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-08-07 12:44:03 +0000
commitedff8202f14ff56d42e90e156df6845ae878aa24 (patch)
treea69eed45b17e7412c02446138756e39655a2feb5 /app/main/dashboard/dcaedt
parent7471ce9a1af62ada086803ea23c659c0972fb79e (diff)
Add subcategory to the "createVFCMT" post body
The DCAE-DS plugin should create the VFCMT with subcategory 'Base Monitoring Template'. Issue-ID: SDC-2484 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: I20bad630efcb719c3528b836e28d4e2d7616888a
Diffstat (limited to 'app/main/dashboard/dcaedt')
-rw-r--r--app/main/dashboard/dcaedt/dcaedt.controller.js2
-rw-r--r--app/main/dashboard/dcaedt/dcaedt.factory.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/main/dashboard/dcaedt/dcaedt.controller.js b/app/main/dashboard/dcaedt/dcaedt.controller.js
index 1ce7b09..93df5fe 100644
--- a/app/main/dashboard/dcaedt/dcaedt.controller.js
+++ b/app/main/dashboard/dcaedt/dcaedt.controller.js
@@ -280,6 +280,8 @@
$scope.loader = true;
generalUserInput.name = this.component.name;
generalUserInput.description = this.component.description;
+ generalUserInput.subcategory = "Base Monitoring Template";
+
console.log(JSON.stringify(generalUserInput, null, 4));
var config = {
headers: {
diff --git a/app/main/dashboard/dcaedt/dcaedt.factory.js b/app/main/dashboard/dcaedt/dcaedt.factory.js
index 934ed76..b4e68aa 100644
--- a/app/main/dashboard/dcaedt/dcaedt.factory.js
+++ b/app/main/dashboard/dcaedt/dcaedt.factory.js
@@ -7,7 +7,7 @@
var factory = {};
factory.getVNFList = function () {
- return $http.get(window.host + 'getResourcesByCategory');
+ return $http.get(window.host + 'getResourcesByMonitoringTemplateCategory');
};
factory.postData = function (url, data, config) {