blob: 016879c3c86ff166c36dd3c8cf4c96d74c782408 [file] [log] [blame]
ramu.n1a6f50f2017-09-28 08:45:27 +05301/*-
2 * ============LICENSE_START=======================================================
ramu.n02c63c52017-09-29 06:32:52 +05303 * ONAP : SDN-C
ramu.n1a6f50f2017-09-28 08:45:27 +05304 * ================================================================================
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
ramu.n85e0df62017-10-13 16:18:50 +053022{
23 "site":[
ramu.n1a6f50f2017-09-28 08:45:27 +053024 {
25 "site-id": ${prop.l3vpn.site1_name},
26 "vpn-policies": {
27 "vpn-policy": [
28 {
29 "vpn-policy-id": ${prop.l3vpn.vpn-policy1-id},
30 "entries": [
31 {
32 "id": ${prop.l3vpn.entry1-id},
33 "vpn": {
34 "vpn-id": ${prop.l3vpn.name},
35 "site-role": "huawei-ac-net-l3vpn-svc:any-to-any-role"
36 }
37 }
38 ]
39 }
40 ]
41 },
42 "site-network-accesses": {
43 "site-network-access": [
44 {
45 "site-network-access-id": ${prop.l3vpn.sna1_name},
46 "bearer": {
47 "appointed-access": {
48 "ne-id": ${prop.l3vpn.pe1_id},
49 "ltp-id": ${prop.l3vpn.ac1_id},
50 "vlan": {
51 "type": "huawei-ac-net-l3vpn-svc:vlan-dot1q",
52 "vlan-id": ${prop.l3vpn.sna1_svlan}
53 }
54 }
55 },
56 "ip-connection": {
57 "ipv4": {
58 "address-allocation-type": "huawei-ac-net-l3vpn-svc:static-address",
59 "addresses": {
60 "provider-address": ${prop.l3vpn.ac1-peer-ip},
61 "customer-address": ${prop.l3vpn.ac1-ip},
62 "mask": "24"
63 }
64 }
65 },
66 "service": {
67 "mtu": "1500"
68 },
69 "routing-protocols": {
70 "routing-protocol": [
71 {
ramu.n02c63c52017-09-29 06:32:52 +053072 "type": ${prop.l3vpn.ac1_protocol},
ramu.n1a6f50f2017-09-28 08:45:27 +053073 "static": {
74 "cascaded-lan-prefixes": [
75 {
76 "ipv4-lan-prefixes": [
77 {
ramu.n02c63c52017-09-29 06:32:52 +053078 "ip-prefix": ${prop.l3vpn.sna1-route.ip-prefix},
79 "next-hop": ${prop.l3vpn.sna1-route.next-hop}
ramu.n1a6f50f2017-09-28 08:45:27 +053080 }
81 ]
82 }
83 ]
84 }
ramu.n02c63c52017-09-29 06:32:52 +053085 "bgp": {
86 "peers": [
87 {
88 "peer-ip": ${prop.l3vpn.peer1-ip},
89 "remote-as": ${prop.l3vpn.ac1_protocol_bgp_as}
90 }
91 ]
92 }
93 }
ramu.n1a6f50f2017-09-28 08:45:27 +053094 }
95 ]
96 },
97 "vpn-attachment": {
98 "vpn-policy-id": ${prop.l3vpn.name}
99 }
100 }
101 ]
102 },
103 {
104 "site-id": ${prop.l3vpn.site2_name},
105 "vpn-policies": {
106 "vpn-policy": [
107 {
108 "vpn-policy-id": ${prop.l3vpn.vpn-policy2-id},
109 "entries": [
110 {
111 "id": ${prop.l3vpn.entry2-id},
112 "vpn": {
113 "vpn-id": ${prop.l3vpn.name},
114 "site-role": "huawei-ac-net-l3vpn-svc:any-to-any-role"
115 }
116 }
117 ]
118 }
119 ]
120 },
121 "site-network-accesses": {
122 "site-network-access": [
123 {
124 "site-network-access-id": ${prop.l3vpn.sna2_name},
125 "bearer": {
126 "appointed-access": {
127 "ne-id": ${prop.l3vpn.pe2_id},
128 "ltp-id": ${prop.l3vpn.ac2_id},
129 "vlan": {
130 "type": "huawei-ac-net-l3vpn-svc:vlan-dot1q",
131 "vlan-id": ${prop.l3vpn.sna2_svlan}
132 }
133 }
134 },
135 "ip-connection": {
136 "ipv4": {
137 "address-allocation-type": "huawei-ac-net-l3vpn-svc:static-address",
138 "addresses": {
139 "provider-address": ${prop.l3vpn.ac2-peer-ip},
140 "customer-address": ${prop.l3vpn.ac2-ip},
141 "mask": "24"
142 }
143 }
144 },
145 "service": {
146 "mtu": "1500"
147 },
148 "routing-protocols": {
149 "routing-protocol": [
150 {
ramu.n02c63c52017-09-29 06:32:52 +0530151 "type": ${prop.l3vpn.ac2_protocol},
ramu.n1a6f50f2017-09-28 08:45:27 +0530152 "static": {
153 "cascaded-lan-prefixes": [
154 {
155 "ipv4-lan-prefixes": [
156 {
ramu.n02c63c52017-09-29 06:32:52 +0530157 "ip-prefix": ${prop.l3vpn.sna2-route.ip-prefix},
158 "next-hop": ${prop.l3vpn.sna2-route.next-hop}
ramu.n1a6f50f2017-09-28 08:45:27 +0530159 }
160 ]
161 }
162 ]
163 }
ramu.n02c63c52017-09-29 06:32:52 +0530164 "bgp": {
165 "peers": [
166 {
167 "peer-ip": ${prop.l3vpn.peer2-ip},
168 "remote-as": ${prop.l3vpn.ac2_protocol_bgp_as}
169 }
170 ]
171 }
ramu.n1a6f50f2017-09-28 08:45:27 +0530172 }
173 ]
174 },
175 "vpn-attachment": {
176 "vpn-policy-id": ${prop.l3vpn.name}
177 }
178 }
179 ]
180 }
ramu.n85e0df62017-10-13 16:18:50 +0530181 ]
182}
ramu.n1a6f50f2017-09-28 08:45:27 +0530183