11eee550a79d15f4a65c2a53b998ea5c379f6bbe
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / sdwan-site.json
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - CCSDK
4  * ================================================================================
5  * Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 {
22     "sites": [
23         {
24             "id": ${prop.id},
25             "name": ${prop.name},
26             "Locations": [
27                 {
28                      "name": ${prop.location-name},
29                      "address": ${prop.location-address},
30                      "postcode": ${prop.location-postcode}
31                 }
32             ],
33             "devices": [
34                 {
35                     "deviceId": ${prop.deviceId},
36                     "locationName": ${prop.location-name}
37                 }
38             ],
39             "siteType": ${prop.type},
40             "role": [${repeat:prop.roles_length:
41                        ${prop.roles[${1}]},
42                       }
43                     ],
44             "controlPoints": [${repeat:prop.controlpoints_length:
45                                 ${prop.controlpoints[${1}]},
46                                 }
47                              ],
48             "description": ${description}
49         }
50     ]
51 }
52
53