From 16700753dcf0e3600f600b0b769c89eb2273f1d6 Mon Sep 17 00:00:00 2001 From: "Kajur, Harish (vk250x)" Date: Mon, 13 Aug 2018 05:32:35 -0400 Subject: Initial seed code for graphadmin Issue-ID: AAI-1469 Change-Id: Ic170c326ad1fe4b43960de674797766f6f7b94bf Signed-off-by: Kajur, Harish (vk250x) --- .../scriptdata/tenant_isolation/inputFilters.json | 104 +++++++++++++++++++++ .../tenant_isolation/inputFiltersAllzones.json | 78 ++++++++++++++++ .../tenant_isolation/inputFilters_E2E.json | 78 ++++++++++++++++ .../tenant_isolation/inputFilters_IST.json | 78 ++++++++++++++++ .../tenant_isolation/inputFilters_PROD.json | 78 ++++++++++++++++ .../etc/scriptdata/tenant_isolation/nodes.json | 26 ++++++ .../scriptdata/tenant_isolation/nodesAZCloud.json | 22 +++++ .../tenant_isolation/nodesIncremental.json | 10 ++ .../etc/scriptdata/tenant_isolation/nodesNoAZ.json | 14 +++ 9 files changed, 488 insertions(+) create mode 100644 src/main/resources/etc/scriptdata/tenant_isolation/inputFilters.json create mode 100644 src/main/resources/etc/scriptdata/tenant_isolation/inputFiltersAllzones.json create mode 100644 src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_E2E.json create mode 100644 src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_IST.json create mode 100644 src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_PROD.json create mode 100644 src/main/resources/etc/scriptdata/tenant_isolation/nodes.json create mode 100644 src/main/resources/etc/scriptdata/tenant_isolation/nodesAZCloud.json create mode 100644 src/main/resources/etc/scriptdata/tenant_isolation/nodesIncremental.json create mode 100644 src/main/resources/etc/scriptdata/tenant_isolation/nodesNoAZ.json (limited to 'src/main/resources/etc/scriptdata/tenant_isolation') diff --git a/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters.json b/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters.json new file mode 100644 index 0000000..07ee9c4 --- /dev/null +++ b/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters.json @@ -0,0 +1,104 @@ +{ + "cloud-region" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "2.5|3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "dyh1b|DHY1A|mtn23a|mtn23b|mdt25b|mtn6|au7tx" + } + ] + }, + "complex" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "2.5|3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "dyh1b|DHY1A|mtn23a|mtn23b|mdt25b|mtn6|au7tx" + } + ] + }, + "availability-zone" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "2.5|3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "dyh1b|DHY1A|mtn23a|mtn23b|mdt25b|mtn6|au7tx" + } + ] + }, + "pserver" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "2.5|3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "dyh1b|DHY1A|mtn23a|mtn23b|mdt25b|mtn6|au7tx" + } + ] + }, + "zone" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "2.5|3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "dyh1b|DHY1A|mtn23a|mtn23b|mdt25b|mtn6|au7tx" + } + ] + }, + "tenant" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "2.5|3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "dyh1b|DHY1A|mtn23a|mtn23b|mdt25b|mtn6|au7tx" + } + ] + } +} \ No newline at end of file diff --git a/src/main/resources/etc/scriptdata/tenant_isolation/inputFiltersAllzones.json b/src/main/resources/etc/scriptdata/tenant_isolation/inputFiltersAllzones.json new file mode 100644 index 0000000..026759d --- /dev/null +++ b/src/main/resources/etc/scriptdata/tenant_isolation/inputFiltersAllzones.json @@ -0,0 +1,78 @@ +{ + "cloud-region" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "2.5|3.0" + }, + { + "property": "cloud-region-id", + "regex": "m.*" + } + ] + }, + "complex" : { + "filtered-node-type": "complex", + "filters": [] + }, + "availability-zone" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "2.5|3.0" + }, + { + "property": "cloud-region-id", + "regex": "m.*" + } + ] + }, + "pserver" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "2.5|3.0" + }, + { + "property": "cloud-region-id", + "regex": "m.*" + } + ] + }, + "zone" : { + "filtered-node-type": "zone", + "filters": [] + }, + "tenant" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "2.5|3.0" + }, + { + "property": "cloud-region-id", + "regex": "m.*" + } + ] + } +} diff --git a/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_E2E.json b/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_E2E.json new file mode 100644 index 0000000..24ee80d --- /dev/null +++ b/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_E2E.json @@ -0,0 +1,78 @@ +{ + "cloud-region" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "RDM3|RDM5a|RDM5b|RDM6a|RDM6b|DPA2a|DPA2b" + } + ] + }, + "complex" : { + "filtered-node-type": "complex", + "filters": [] + }, + "availability-zone" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "RDM3|RDM5a|RDM5b|RDM6a|RDM6b|DPA2a|DPA2b" + } + ] + }, + "pserver" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "RDM3|RDM5a|RDM5b|RDM6a|RDM6b|DPA2a|DPA2b" + } + ] + }, + "zone" : { + "filtered-node-type": "zone", + "filters": [] + }, + "tenant" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "RDM3|RDM5a|RDM5b|RDM6a|RDM6b|DPA2a|DPA2b" + } + ] + } +} diff --git a/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_IST.json b/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_IST.json new file mode 100644 index 0000000..8ebbf6c --- /dev/null +++ b/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_IST.json @@ -0,0 +1,78 @@ +{ + "cloud-region" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "dyh1b|DHY1A|mtn23a|mtn23b|mdt25b|mtn6|au7tx" + } + ] + }, + "complex" : { + "filtered-node-type": "complex", + "filters": [] + }, + "availability-zone" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "dyh1b|DHY1A|mtn23a|mtn23b|mdt25b|mtn6|au7tx" + } + ] + }, + "pserver" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "dyh1b|DHY1A|mtn23a|mtn23b|mdt25b|mtn6|au7tx" + } + ] + }, + "zone" : { + "filtered-node-type": "zone", + "filters": [] + }, + "tenant" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "dyh1b|DHY1A|mtn23a|mtn23b|mdt25b|mtn6|au7tx" + } + ] + } +} diff --git a/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_PROD.json b/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_PROD.json new file mode 100644 index 0000000..24ee80d --- /dev/null +++ b/src/main/resources/etc/scriptdata/tenant_isolation/inputFilters_PROD.json @@ -0,0 +1,78 @@ +{ + "cloud-region" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "RDM3|RDM5a|RDM5b|RDM6a|RDM6b|DPA2a|DPA2b" + } + ] + }, + "complex" : { + "filtered-node-type": "complex", + "filters": [] + }, + "availability-zone" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "RDM3|RDM5a|RDM5b|RDM6a|RDM6b|DPA2a|DPA2b" + } + ] + }, + "pserver" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "RDM3|RDM5a|RDM5b|RDM6a|RDM6b|DPA2a|DPA2b" + } + ] + }, + "zone" : { + "filtered-node-type": "zone", + "filters": [] + }, + "tenant" : { + "filtered-node-type": "cloud-region", + "filters": [ + { + "property": "cloud-owner", + "regex": "att-aic" + }, + { + "property": "cloud-region-version", + "regex": "3.0|aic3.0|3.6" + }, + { + "property": "cloud-region-id", + "regex": "RDM3|RDM5a|RDM5b|RDM6a|RDM6b|DPA2a|DPA2b" + } + ] + } +} diff --git a/src/main/resources/etc/scriptdata/tenant_isolation/nodes.json b/src/main/resources/etc/scriptdata/tenant_isolation/nodes.json new file mode 100644 index 0000000..1bfc62b --- /dev/null +++ b/src/main/resources/etc/scriptdata/tenant_isolation/nodes.json @@ -0,0 +1,26 @@ +{ + "cloud-region": { + "cousins" : ["complex","zone"], + "parents" : [] + }, + "availability-zone": { + "cousins" : ["complex"], + "parents":["cloud-region"] + }, + "pserver" : { + "cousins" : ["zone", "complex", "availability-zone","cloud-region"], + "parents":[] + }, + "complex" : { + "cousins":[], + "parents":[] + }, + "tenant" : { + "cousins":[], + "parents":["cloud-region"] + }, + "zone" : { + "cousins":["complex"], + "parents":[] + } +} diff --git a/src/main/resources/etc/scriptdata/tenant_isolation/nodesAZCloud.json b/src/main/resources/etc/scriptdata/tenant_isolation/nodesAZCloud.json new file mode 100644 index 0000000..b955757 --- /dev/null +++ b/src/main/resources/etc/scriptdata/tenant_isolation/nodesAZCloud.json @@ -0,0 +1,22 @@ +{ + "cloud-region": { + "cousins" : [], + "parents":[] + }, + "availability-zone": { + "cousins" : [], + "parents":["cloud-region"] + }, + "pserver" : { + "cousins" : ["zone", "complex", "availability-zone"], + "parents":[] + }, + "complex" : { + "cousins":[], + "parents":[] + }, + "zone" : { + "cousins":["complex"], + "parents":[] + } +} diff --git a/src/main/resources/etc/scriptdata/tenant_isolation/nodesIncremental.json b/src/main/resources/etc/scriptdata/tenant_isolation/nodesIncremental.json new file mode 100644 index 0000000..0816bc4 --- /dev/null +++ b/src/main/resources/etc/scriptdata/tenant_isolation/nodesIncremental.json @@ -0,0 +1,10 @@ +{ + "pserver" : { + "cousins" : ["zone", "complex", "availability-zone","cloud-region"], + "parents":[] + }, + "tenant" : { + "cousins":[], + "parents":["cloud-region"] + } +} diff --git a/src/main/resources/etc/scriptdata/tenant_isolation/nodesNoAZ.json b/src/main/resources/etc/scriptdata/tenant_isolation/nodesNoAZ.json new file mode 100644 index 0000000..a0dfae5 --- /dev/null +++ b/src/main/resources/etc/scriptdata/tenant_isolation/nodesNoAZ.json @@ -0,0 +1,14 @@ +{ + "pserver" : { + "cousins" : ["zone", "complex"], + "parents":[] + }, + "complex" : { + "cousins":[], + "parents":[] + }, + "zone" : { + "cousins":["complex"], + "parents":[] + } +} -- cgit 1.2.3-korg