blob: 3aa426be7c85df25a35b842953a349ed24320743 [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
22[
23 {
24 "site-id": ${prop.l3vpn.site1_name},
25 "vpn-policies": {
26 "vpn-policy": [
27 {
28 "vpn-policy-id": ${prop.l3vpn.vpn-policy1-id},
29 "entries": [
30 {
31 "id": ${prop.l3vpn.entry1-id},
32 "vpn": {
33 "vpn-id": ${prop.l3vpn.name},
34 "site-role": "huawei-ac-net-l3vpn-svc:any-to-any-role"
35 }
36 }
37 ]
38 }
39 ]
40 },
41 "site-network-accesses": {
42 "site-network-access": [
43 {
44 "site-network-access-id": ${prop.l3vpn.sna1_name},
45 "bearer": {
46 "appointed-access": {
47 "ne-id": ${prop.l3vpn.pe1_id},
48 "ltp-id": ${prop.l3vpn.ac1_id},
49 "vlan": {
50 "type": "huawei-ac-net-l3vpn-svc:vlan-dot1q",
51 "vlan-id": ${prop.l3vpn.sna1_svlan}
52 }
53 }
54 },
55 "ip-connection": {
56 "ipv4": {
57 "address-allocation-type": "huawei-ac-net-l3vpn-svc:static-address",
58 "addresses": {
59 "provider-address": ${prop.l3vpn.ac1-peer-ip},
60 "customer-address": ${prop.l3vpn.ac1-ip},
61 "mask": "24"
62 }
63 }
64 },
65 "service": {
66 "mtu": "1500"
67 },
68 "routing-protocols": {
69 "routing-protocol": [
70 {
ramu.n02c63c52017-09-29 06:32:52 +053071 "type": ${prop.l3vpn.ac1_protocol},
ramu.n1a6f50f2017-09-28 08:45:27 +053072 "static": {
73 "cascaded-lan-prefixes": [
74 {
75 "ipv4-lan-prefixes": [
76 {
ramu.n02c63c52017-09-29 06:32:52 +053077 "ip-prefix": ${prop.l3vpn.sna1-route.ip-prefix},
78 "next-hop": ${prop.l3vpn.sna1-route.next-hop}
ramu.n1a6f50f2017-09-28 08:45:27 +053079 }
80 ]
81 }
82 ]
83 }
ramu.n02c63c52017-09-29 06:32:52 +053084 "bgp": {
85 "peers": [
86 {
87 "peer-ip": ${prop.l3vpn.peer1-ip},
88 "remote-as": ${prop.l3vpn.ac1_protocol_bgp_as}
89 }
90 ]
91 }
92 }
ramu.n1a6f50f2017-09-28 08:45:27 +053093 }
94 ]
95 },
96 "vpn-attachment": {
97 "vpn-policy-id": ${prop.l3vpn.name}
98 }
99 }
100 ]
101 },
102 {
103 "site-id": ${prop.l3vpn.site2_name},
104 "vpn-policies": {
105 "vpn-policy": [
106 {
107 "vpn-policy-id": ${prop.l3vpn.vpn-policy2-id},
108 "entries": [
109 {
110 "id": ${prop.l3vpn.entry2-id},
111 "vpn": {
112 "vpn-id": ${prop.l3vpn.name},
113 "site-role": "huawei-ac-net-l3vpn-svc:any-to-any-role"
114 }
115 }
116 ]
117 }
118 ]
119 },
120 "site-network-accesses": {
121 "site-network-access": [
122 {
123 "site-network-access-id": ${prop.l3vpn.sna2_name},
124 "bearer": {
125 "appointed-access": {
126 "ne-id": ${prop.l3vpn.pe2_id},
127 "ltp-id": ${prop.l3vpn.ac2_id},
128 "vlan": {
129 "type": "huawei-ac-net-l3vpn-svc:vlan-dot1q",
130 "vlan-id": ${prop.l3vpn.sna2_svlan}
131 }
132 }
133 },
134 "ip-connection": {
135 "ipv4": {
136 "address-allocation-type": "huawei-ac-net-l3vpn-svc:static-address",
137 "addresses": {
138 "provider-address": ${prop.l3vpn.ac2-peer-ip},
139 "customer-address": ${prop.l3vpn.ac2-ip},
140 "mask": "24"
141 }
142 }
143 },
144 "service": {
145 "mtu": "1500"
146 },
147 "routing-protocols": {
148 "routing-protocol": [
149 {
ramu.n02c63c52017-09-29 06:32:52 +0530150 "type": ${prop.l3vpn.ac2_protocol},
ramu.n1a6f50f2017-09-28 08:45:27 +0530151 "static": {
152 "cascaded-lan-prefixes": [
153 {
154 "ipv4-lan-prefixes": [
155 {
ramu.n02c63c52017-09-29 06:32:52 +0530156 "ip-prefix": ${prop.l3vpn.sna2-route.ip-prefix},
157 "next-hop": ${prop.l3vpn.sna2-route.next-hop}
ramu.n1a6f50f2017-09-28 08:45:27 +0530158 }
159 ]
160 }
161 ]
162 }
ramu.n02c63c52017-09-29 06:32:52 +0530163 "bgp": {
164 "peers": [
165 {
166 "peer-ip": ${prop.l3vpn.peer2-ip},
167 "remote-as": ${prop.l3vpn.ac2_protocol_bgp_as}
168 }
169 ]
170 }
ramu.n1a6f50f2017-09-28 08:45:27 +0530171 }
172 ]
173 },
174 "vpn-attachment": {
175 "vpn-policy-id": ${prop.l3vpn.name}
176 }
177 }
178 ]
179 }
180]
181