9e1e920685e8c8838cf351cc0a51dbee01f1b40d
[ccsdk/sli/plugins.git] / restapi-call-node / provider / src / main / resources / sptn-l3vpn-template.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   "snc-l3vpn": {
24     "-xmlns": "urn:chinamobile:l3vpn",
25     "operate-status": "operate-up",
26     "traffic-class": "BE",
27     "acs": {
28       "l3-acs": [
29         {
30           "id": "0",
31           "ne-id": ${prop.l3vpn.pe1_id},
32           "ltp-id": ${prop.l3vpn.ac1_id},
33           "ip-addr": ${prop.l3vpn.ac1_ip.value},
34           "ip-mask": ${prop.l3vpn.ac1_ip.mask},
35           "access-type": "Sub-interface",
36           "vlan": ${prop.l3vpn.ac1_svlan},
37           "qos": {
38             "belonged-id": ${prop.l3vpn.ac1_id},
39             "tunnel-mode": "pipeline",
40             "cac-mode": "1",
41             "convg-mode": "0",
42             "traffic-adj-mode": "0",
43             "a2z-policing": "1",
44             "z2a-policing": "1",
45             "a2z-cir": "5000",
46             "z2a-cir": "5000",
47             "a2z-pir": "1000000",
48             "z2a-pir": "1000000",
49             "a2z-cbs": "1024",
50             "z2a-cbs": "1024",
51             "a2z-pbs": "1024",
52             "z2a-pbs": "1024",
53             "a2z-color-mode": "0",
54             "z2a-color-mode": "0",
55             "traffic-class": "CS7"
56           },
57           "protocol-list": {
58             "protocols": {
59               "protocol-type": "static",
60               "static-route-list": {
61                 "static-routes": [
62                   {
63                     "id": "0",
64                     "dest-ip": ${prop.l3vpn.ac1_peer_ip.value},
65                     "dest-mask": ${prop.l3vpn.ac1_peer_ip.mask},
66                     "route-type": "direct-route",
67                     "out-inf": ${prop.l3vpn.ac1_id},
68                     "route-weight": "3",
69                     "route-status": "up"
70                   }
71                 ]
72               }
73             }
74           }
75         },
76         {
77           "id": "1",
78           "ne-id": ${prop.l3vpn.pe2_id},
79           "ltp-id": ${prop.l3vpn.ac2_id},
80           "ip-addr": ${prop.l3vpn.ac2_ip.value},
81           "ip-mask": ${prop.l3vpn.ac2_ip.mask},
82           "access-type": "Sub-interface",
83           "vlan": ${prop.l3vpn.ac1_svlan},
84           "qos": {
85             "belonged-id": ${prop.l3vpn.ac2_id},
86             "tunnel-mode": "pipeline",
87             "cac-mode": "1",
88             "convg-mode": "0",
89             "traffic-adj-mode": "0",
90             "a2z-policing": "1",
91             "z2a-policing": "1",
92             "a2z-cir": "5000",
93             "z2a-cir": "5000",
94             "a2z-pir": "1000000",
95             "z2a-pir": "1000000",
96             "a2z-cbs": "1024",
97             "z2a-cbs": "1024",
98             "a2z-pbs": "1024",
99             "z2a-pbs": "1024",
100             "a2z-color-mode": "0",
101             "z2a-color-mode": "0",
102             "traffic-class": "CS7"
103           },
104           "protocol-list": {
105             "protocols": {
106               "protocol-type": "static",
107               "static-route-list": {
108                 "static-routes": [
109                   {
110                     "id": "0",
111                     "dest-ip": ${prop.l3vpn.ac2_peer_ip.value},
112                     "dest-mask": ${prop.l3vpn.ac2_peer_ip.mask},
113                     "route-type": "direct-route",
114                     "out-inf": ${prop.l3vpn.ac2_id},
115                     "route-weight": "4",
116                     "route-status": "up"
117                   }
118                 ]
119               }
120             }
121           }
122         }
123       ]
124     },
125     "user-label": ${prop.l3vpn.name},
126     "topo-mode": "any-to-any",
127     "admin-status": "admin-up",
128     "tunnel-create-policy": {
129       "user-label": "tunnel",
130       "tenant-id": "tunnel",
131       "direction": "bidirection",
132       "type": "1",
133       "admin-status": "admin-up",
134       "qos": {
135         "tunnel-mode": "pipeline",
136         "cac-mode": "1",
137         "convg-mode": "0",
138         "traffic-adj-mode": "0",
139         "a2z-policing": "0",
140         "a2z-cir": "500",
141         "a2z-pir": "1000000",
142         "a2z-cbs": "1024",
143         "a2z-pbs": "1024",
144         "a2z-color-mode": "0",
145         "z2a-policing": "0",
146         "z2a-cir": "500",
147         "z2a-pir": "1000000",
148         "z2a-cbs": "1024",
149         "z2a-pbs": "1024",
150         "z2a-color-mode": "0",
151         "traffic-class": "CS7"
152       },
153       "snc-switch": {
154         "layer-rate": "LSP",
155         "linear-protection-type": "path-protection-1-to-1",
156         "linear-protection-protocol": "APS",
157         "switch-mode": "double-end-switch",
158         "revertive-mode": "revertive",
159         "wtr": "60",
160         "hold-off-time": "0",
161         "reroute-revertive-mode": "revertive",
162         "reroute-wtr": "50"
163       },
164       "lsp-oam": {
165         "cc-allow": "true",
166         "cc-exp": "CS7",
167         "cc-interval": "3.3",
168         "lm-mode": "preactive",
169         "dm-mode": "preactive",
170         "meps": {
171           "mep": [
172             { "id": "1" },
173             { "id": "2" }
174           ]
175         }
176       }
177     }
178   }
179 }
180