Update underlay DG for integration issues
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / l3smsitetemplate.json
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : 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   "site":[
24   {
25   "site-id": ${prop.l3vpn.site1_name},
26   "site-name":"Site-forhuawei1",
27   "vrf-control-option": {
28     "custom-vrf": "true",
29     "vrf-definition-policy": "site-and-vpn-policy"
30   },
31   "vpn-policies": {
32     "vpn-policy": [
33       {
34         "vpn-policy-id": ${prop.l3vpn.vpn-policy1-id},
35         "vpn-policy-name": "policy-forhuawei1",
36         "entries": [
37         {
38           "id": ${prop.l3vpn.entry1-id},
39           "vpn": {
40           "vpn-id": ${prop.l3vpn.name},
41           "site-role": "huawei-ac-net-l3vpn-svc:any-to-any-role"
42           }
43         }
44         ]
45       }
46     ]
47   },
48   "site-network-accesses": {
49     "site-network-access": [
50       {
51         "site-network-access-id": ${prop.l3vpn.sna1_name},
52         "bearer": {
53           "appointed-access": {
54             "ne-id": ${prop.l3vpn.pe1_id},
55             "ltp-id": ${prop.l3vpn.ac1_id},
56             "admin-status":"admin-up",
57             "vlan": {
58               "huawei-ac-net-l3vpn-svc:type": "vlan-dot1q",
59               "vlan-id": ${prop.l3vpn.ac1_svlan},
60               "sub-if-number":"dyn-allocate"
61             }
62           }
63         },
64         "ip-connection": {
65           "ipv4": {
66             "addresses": {
67               "provider-address": ${prop.l3vpn.ac1_ip},
68               "customer-address": ${prop.l3vpn.ac1_peer_ip},
69               "mask": "30"
70             }
71           }
72         },
73         "routing-protocols": {
74           "routing-protocol": [
75             {
76               "type": ${prop.l3vpn.ac1_protocol},
77               "static": {
78                 "cascaded-lan-prefixes": 
79                   {
80                     "ipv4-lan-prefixes": [
81                       {
82                         "ip-prefix": ${prop.l3vpn.sna1-route.ip-prefix},
83                         "next-hop": ${prop.l3vpn.sna1-route.next-hop},
84                         "preference":"100"
85                       }
86                     ]
87                   }
88               }
89             }
90           ]
91         },
92         "vpn-attachment": {
93           "vpn-policy-id": ${prop.l3vpn.vpn-policy1-id}
94         }
95       },
96       {
97   "site-network-access-id": ${prop.l3vpn.sna2_name},
98   "bearer": {
99     "appointed-access": {
100       "ne-id": ${prop.l3vpn.pe2_id},
101       "ltp-id": ${prop.l3vpn.ac2_id},
102       "admin-status": "admin-up",
103       "vlan": {
104         "huawei-ac-net-l3vpn-svc:type": "vlan-dot1q",
105         "vlan-id": ${prop.l3vpn.ac2_svlan},
106         "sub-if-number": "dyn-allocate"
107       }
108     }
109   },
110   "ip-connection": {
111     "ipv4": {
112       "addresses": {
113         "provider-address": ${prop.l3vpn.ac2_ip},
114         "customer-address": ${prop.l3vpn.ac2_peer_ip},
115         "mask": "30"
116       }
117     }
118   },
119   "routing-protocols": {
120     "routing-protocol": [
121       {
122         "huawei-ac-net-l3vpn-svc:type": ${prop.l3vpn.ac2_protocol},
123         "static": {
124           "cascaded-lan-prefixes": {
125             "ipv4-lan-prefixes": [
126               {
127                 "ip-prefix": ${prop.l3vpn.sna2-route.ip-prefix},
128                 "next-hop": ${prop.l3vpn.sna2-route.next-hop},
129                 "preference": "100"
130               }
131             ]
132           }
133         }
134       }
135     ]
136   },
137   "vpn-attachment": {
138     "vpn-policy-id": ${prop.l3vpn.vpn-policy1-id}
139   }
140 }
141 ]
142 }
143   }
144  ]
145 }
146