From 033e544e10e6c35b9f38c91972eccb7906ecc6c4 Mon Sep 17 00:00:00 2001 From: shaaban Altanany Date: Tue, 17 Dec 2019 15:45:51 +0200 Subject: add group notation to resource dictionary -including changes to (starter-dictionary,test-dictionary)json files -add column in resource dictionary table in database -expose api for getting unique group from resource dictionary table Issue-ID: CCSDK-2004 Signed-off-by: shaaban Altanany Change-Id: I0998709af2e692717b9b1b4937943c323144594a --- .../resource-dictionary/test-dictionary/create_netbox_ip.json | 1 + .../resource-dictionary/test-dictionary/delete_netbox_ip.json | 1 + .../model-catalog/resource-dictionary/test-dictionary/hostname.json | 3 ++- .../resource-dictionary/test-dictionary/interface-description.json | 3 ++- .../resource-dictionary/test-dictionary/interface-name.json | 3 ++- .../model-catalog/resource-dictionary/test-dictionary/prefix-id.json | 3 ++- .../model-catalog/resource-dictionary/test-dictionary/unit-number.json | 3 ++- .../resource-dictionary/test-dictionary/vf-module-number.json | 3 ++- .../resource-dictionary/test-dictionary/vf-module-type.json | 1 + 9 files changed, 15 insertions(+), 6 deletions(-) mode change 100644 => 100755 components/model-catalog/resource-dictionary/test-dictionary/create_netbox_ip.json mode change 100644 => 100755 components/model-catalog/resource-dictionary/test-dictionary/delete_netbox_ip.json mode change 100644 => 100755 components/model-catalog/resource-dictionary/test-dictionary/hostname.json mode change 100644 => 100755 components/model-catalog/resource-dictionary/test-dictionary/interface-description.json mode change 100644 => 100755 components/model-catalog/resource-dictionary/test-dictionary/interface-name.json mode change 100644 => 100755 components/model-catalog/resource-dictionary/test-dictionary/prefix-id.json mode change 100644 => 100755 components/model-catalog/resource-dictionary/test-dictionary/unit-number.json mode change 100644 => 100755 components/model-catalog/resource-dictionary/test-dictionary/vf-module-number.json mode change 100644 => 100755 components/model-catalog/resource-dictionary/test-dictionary/vf-module-type.json (limited to 'components/model-catalog/resource-dictionary/test-dictionary') diff --git a/components/model-catalog/resource-dictionary/test-dictionary/create_netbox_ip.json b/components/model-catalog/resource-dictionary/test-dictionary/create_netbox_ip.json old mode 100644 new mode 100755 index 9e97aa497..09844e508 --- a/components/model-catalog/resource-dictionary/test-dictionary/create_netbox_ip.json +++ b/components/model-catalog/resource-dictionary/test-dictionary/create_netbox_ip.json @@ -1,6 +1,7 @@ { "tags" : "oam-local-ipv4-address", "name" : "create_netbox_ip", + "group":"default", "property" : { "description" : "netbox ip", "type" : "dt-netbox-ip" diff --git a/components/model-catalog/resource-dictionary/test-dictionary/delete_netbox_ip.json b/components/model-catalog/resource-dictionary/test-dictionary/delete_netbox_ip.json old mode 100644 new mode 100755 index c6cb85877..c520ce1b2 --- a/components/model-catalog/resource-dictionary/test-dictionary/delete_netbox_ip.json +++ b/components/model-catalog/resource-dictionary/test-dictionary/delete_netbox_ip.json @@ -1,6 +1,7 @@ { "tags": "oam-local-ipv4-address", "name": "delete_netbox_ip", + "group":"default", "property": { "description": "delete netbox ip", "type": "string" diff --git a/components/model-catalog/resource-dictionary/test-dictionary/hostname.json b/components/model-catalog/resource-dictionary/test-dictionary/hostname.json old mode 100644 new mode 100755 index 025cce336..29a901aa9 --- a/components/model-catalog/resource-dictionary/test-dictionary/hostname.json +++ b/components/model-catalog/resource-dictionary/test-dictionary/hostname.json @@ -1,6 +1,7 @@ { "tags": "hostname", "name": "hostname", + "group":"default", "property": { "description": "hostname", "type": "string" @@ -11,4 +12,4 @@ "type": "source-input" } } - } \ No newline at end of file + } diff --git a/components/model-catalog/resource-dictionary/test-dictionary/interface-description.json b/components/model-catalog/resource-dictionary/test-dictionary/interface-description.json old mode 100644 new mode 100755 index d13bfc44b..f2799a449 --- a/components/model-catalog/resource-dictionary/test-dictionary/interface-description.json +++ b/components/model-catalog/resource-dictionary/test-dictionary/interface-description.json @@ -1,6 +1,7 @@ { "tags": "interface-description", "name": "interface-description", + "group":"default", "property": { "description": "interface-description", "type": "string" @@ -18,4 +19,4 @@ } } } -} \ No newline at end of file +} diff --git a/components/model-catalog/resource-dictionary/test-dictionary/interface-name.json b/components/model-catalog/resource-dictionary/test-dictionary/interface-name.json old mode 100644 new mode 100755 index 53a11ed70..3fb670027 --- a/components/model-catalog/resource-dictionary/test-dictionary/interface-name.json +++ b/components/model-catalog/resource-dictionary/test-dictionary/interface-name.json @@ -1,6 +1,7 @@ { "name" : "interface-name", "tags" : "interface-name", + "group":"default", "updated-by" : "adetalhouet", "property" : { "description" : "interface-name", @@ -12,4 +13,4 @@ "properties" : { } } } -} \ No newline at end of file +} diff --git a/components/model-catalog/resource-dictionary/test-dictionary/prefix-id.json b/components/model-catalog/resource-dictionary/test-dictionary/prefix-id.json old mode 100644 new mode 100755 index e515eca55..06a444c15 --- a/components/model-catalog/resource-dictionary/test-dictionary/prefix-id.json +++ b/components/model-catalog/resource-dictionary/test-dictionary/prefix-id.json @@ -1,6 +1,7 @@ { "tags": "prefix-id", "name": "prefix-id", + "group":"default", "property" :{ "description": "prefix-id", "type": "integer" @@ -13,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/components/model-catalog/resource-dictionary/test-dictionary/unit-number.json b/components/model-catalog/resource-dictionary/test-dictionary/unit-number.json old mode 100644 new mode 100755 index 333fd78eb..ea422247d --- a/components/model-catalog/resource-dictionary/test-dictionary/unit-number.json +++ b/components/model-catalog/resource-dictionary/test-dictionary/unit-number.json @@ -1,6 +1,7 @@ { "tags": "unit-number", "name": "unit-number", + "group":"default", "property": { "description": "unit-number", "type": "string" @@ -11,4 +12,4 @@ "type": "source-input" } } - } \ No newline at end of file + } diff --git a/components/model-catalog/resource-dictionary/test-dictionary/vf-module-number.json b/components/model-catalog/resource-dictionary/test-dictionary/vf-module-number.json old mode 100644 new mode 100755 index cdd40f669..b26caebf8 --- a/components/model-catalog/resource-dictionary/test-dictionary/vf-module-number.json +++ b/components/model-catalog/resource-dictionary/test-dictionary/vf-module-number.json @@ -1,6 +1,7 @@ { "tags": "vf-module-number", "name": "vf-module-number", + "group":"default", "property" :{ "description": "vf-module-number", "type": "string" @@ -13,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/components/model-catalog/resource-dictionary/test-dictionary/vf-module-type.json b/components/model-catalog/resource-dictionary/test-dictionary/vf-module-type.json old mode 100644 new mode 100755 index 358644330..8baf05ddd --- a/components/model-catalog/resource-dictionary/test-dictionary/vf-module-type.json +++ b/components/model-catalog/resource-dictionary/test-dictionary/vf-module-type.json @@ -1,6 +1,7 @@ { "name": "vf-module-type", "tags": "vf-module-type", + "group":"default", "property": { "description": "vf-module-type", "type": "string" -- cgit 1.2.3-korg