diff options
author | Dan Timoney <dt5972@att.com> | 2018-08-17 16:39:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-08-17 16:39:08 +0000 |
commit | cb1aa771847fe52d74eebdd7dc6ad6b1218e1a22 (patch) | |
tree | ba318160f06947bb01bbb1227e369a8c388e6e21 /platform-logic/restapi-templates/src/main | |
parent | 3c02eaf06b46237f3ce69be0182c490ac8f9d7b8 (diff) | |
parent | 807e81260d9d2b905489e88b4d42f763e1961e47 (diff) |
Merge "SDWAN Site DGs update"
Former-commit-id: aff8871a93ea3d6ac2fbaedbb8b3483cbfdca2c3
Diffstat (limited to 'platform-logic/restapi-templates/src/main')
4 files changed, 63 insertions, 8 deletions
diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-device-del.json b/platform-logic/restapi-templates/src/main/json/sdwan-device-del.json new file mode 100644 index 00000000..5aa5a92d --- /dev/null +++ b/platform-logic/restapi-templates/src/main/json/sdwan-device-del.json @@ -0,0 +1,26 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - CCSDK + * ================================================================================ + * Copyright (C) 2018 Huawei Technologies Co., Ltd. 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. + * ============LICENSE_END========================================================= + */ + +{ + "deviceIds": [${repeat:prop.devices_length: + ${prop.devices[${1}]}, + } + ] +} diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-device.json b/platform-logic/restapi-templates/src/main/json/sdwan-device.json index 1d0ef64c..4fd47731 100644 --- a/platform-logic/restapi-templates/src/main/json/sdwan-device.json +++ b/platform-logic/restapi-templates/src/main/json/sdwan-device.json @@ -21,13 +21,13 @@ { "devices": [ { - "esn": ${prop.esn}, - "deviceModel": ${prop.type}, - "name": ${prop.name}, + "esn": ${prop.device.esn}, + "deviceModel": ${prop.device.deviceModel}, + "name": ${prop.device.name}, "siteId": "null", - "description": ${prop.description}, - "systemIp": ${prop.systemip}, + "description": ${prop.device.description}, + "systemIp": ${prop.device.systemIP}, "tags": "null" } ] -}
\ No newline at end of file +} diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site-del.json b/platform-logic/restapi-templates/src/main/json/sdwan-site-del.json new file mode 100644 index 00000000..c263ebcf --- /dev/null +++ b/platform-logic/restapi-templates/src/main/json/sdwan-site-del.json @@ -0,0 +1,28 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - CCSDK + * ================================================================================ + * Copyright (C) 2018 Huawei Technologies Co., Ltd. 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. + * ============LICENSE_END========================================================= + */ + +{ + "sites": [ + { + "id": ${prop.site.siteId} + } + ] +} + diff --git a/platform-logic/restapi-templates/src/main/json/sdwan-site.json b/platform-logic/restapi-templates/src/main/json/sdwan-site.json index 9d9fba4b..993a1a4a 100644 --- a/platform-logic/restapi-templates/src/main/json/sdwan-site.json +++ b/platform-logic/restapi-templates/src/main/json/sdwan-site.json @@ -45,7 +45,7 @@ "role": [${repeat:prop.site.roles_length: ${prop.site.roles[${1}]}, } - ], + ], "controlPoints": [${repeat:prop.site.controlpoints_length: ${prop.site.controlpoints[${1}]}, } @@ -55,7 +55,8 @@ ${prop.site.email[${1}]}, } ] - } + }, + "description": ${prop.site.description} } ] } |