778e4b294b366917bf67c8d5f33436ea218d062d
[ccsdk/sli/plugins.git] / restapi-call-node / provider / src / main / resources / vrf-update.json
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : SDN-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *                                              reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 {
23   "vpn-vame": ${allocate-vpn-resource-notification-input.vpn-data[0].vpn-name},
24   "vpn-id": ${allocate-vpn-resource-notification-input.vpn-data[0].vpn-id},
25   "vrf-details": [
26   ${repeat:allocate-vpn-resource-notification-input.vpn-data[0].vrf-information_length:
27     {
28       "vrf-export-details": [
29       ${repeat:allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].vrf-export-details_length:
30         {
31           "vrf-export": ${allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].vrf-export-details[${2}].vrf-export}
32         }
33         }
34       ],
35       "vrf-name": ${allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].vrf-name},
36       "vpe-name": ${allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].vpe-name},
37       "vrf-import-details": [
38       ${repeat:allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].vrf-import-details_length:
39         {
40           "vrf-import": ${allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].vrf-import-details[${2}].vrf-import}
41         }
42         }
43       ],
44       "apply-group-template": [
45       ${repeat:allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].apply-group-template_length:
46         {
47           "apply-group": ${allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].apply-group-template[${2}].apply-group}
48         }
49         }
50       ],
51       "community-list": [
52       ${repeat:allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].community-list_length:
53         {
54           "member": ${allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].community-list[${2}].name},
55           "name": ${allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].community-list[${2}].member}
56         }
57         }
58       ],
59       "router-distinguisher": ${allocate-vpn-resource-notification-input.vpn-data[0].vrf-information[${1}].router-distinguisher}
60     }
61     }
62   ],
63   "spoke-routes": {
64     "route-target": ${allocate-vpn-resource-notification-input.vpn-data[0].spoke-route-target.route-target}
65   },
66   
67    "route-target-details": [
68   ${repeat:allocate-vpn-resource-notification-input.vpn-data[0].route-target-details_length:
69     {
70      "route-target": ${allocate-vpn-resource-notification-input.vpn-data[0].route-target-details[${1}].route-target},
71      "route-target-type": ${allocate-vpn-resource-notification-input.vpn-data[0].route-target-details[${1}].route-target-type}
72     }
73     }
74   ],
75   
76   "e2e-vpn-key": ${allocate-vpn-resource-notification-input.vpn-data[0].e2e-vpn-id}
77 }