summaryrefslogtreecommitdiffstats
path: root/src/dcm/api/api.go
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2020-09-28 23:26:25 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-28 23:26:25 +0000
commit4e5efb48bba88af11047fec05c9d4b5363f4add9 (patch)
treef65275ca9fa8407c2b21e22244383a7c8b5030bb /src/dcm/api/api.go
parent4009ff23fa17910728c7985c89e65f4ac4ce3def (diff)
parent8c0cc1278cc4d84863b076b2014b9bc9d8805218 (diff)
Merge "Implement Terminate operation in DCM"
Diffstat (limited to 'src/dcm/api/api.go')
-rw-r--r--src/dcm/api/api.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dcm/api/api.go b/src/dcm/api/api.go
index de1d5c97..0f68a517 100644
--- a/src/dcm/api/api.go
+++ b/src/dcm/api/api.go
@@ -44,6 +44,7 @@ func NewRouter(
quotaClient = module.NewQuotaClient()
}
+ // Set up Logical Cloud API
logicalCloudHandler := logicalCloudHandler{client: logicalCloudClient,
clusterClient: clusterClient,
quotaClient: quotaClient,
@@ -67,6 +68,9 @@ func NewRouter(
lcRouter.HandleFunc(
"/logical-clouds/{logical-cloud-name}/apply",
logicalCloudHandler.applyHandler).Methods("POST")
+ lcRouter.HandleFunc(
+ "/logical-clouds/{logical-cloud-name}/terminate",
+ logicalCloudHandler.terminateHandler).Methods("POST")
// To Do
// get kubeconfig
/*lcRouter.HandleFunc(