summaryrefslogtreecommitdiffstats
path: root/plugins/restapi-call-node/provider/src/main/resources/l3smsitetemplate.json
blob: 8f8156698db58cb89c0926a19b43541fc143fdf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
  "site":[
  {
  "site-id": ${prop.l3vpn.site1_name},
  "vpn-policies": {
    "vpn-policy": [
      {
        "vpn-policy-id": ${prop.l3vpn.vpn-policy1-id},
        "entries": [
          {
            "id": ${prop.l3vpn.entry1-id},
            "vpn": {
              "vpn-id": ${prop.l3vpn.name},
              "site-role": "huawei-ac-net-l3vpn-svc:any-to-any-role"
            }
          }
        ]
      }
    ]
  },
  "site-network-accesses": {
    "site-network-access": [
      {
        "site-network-access-id": ${prop.l3vpn.sna1_name},
        "bearer": {
          "appointed-access": {
            "ne-id": ${prop.l3vpn.pe1_id},
            "ltp-id": ${prop.l3vpn.ac1_id},
            "vlan": {
              "type": "huawei-ac-net-l3vpn-svc:vlan-dot1q",
              "vlan-id": ${prop.l3vpn.sna1_svlan}
            }
          }
        },
        "ip-connection": {
          "ipv4": {
            "address-allocation-type": "huawei-ac-net-l3vpn-svc:static-address",
            "addresses": {
              "provider-address": ${prop.l3vpn.ac1-peer-ip},
              "customer-address": ${prop.l3vpn.ac1-ip},
              "mask": "24"
            }
          }
        },
        "service": {
          "mtu": "1500"
        },
        "routing-protocols": {
          "routing-protocol": [
            {
              "type": ${prop.l3vpn.ac1_protocol},
              "static": {
                "cascaded-lan-prefixes": [
                  {
                    "ipv4-lan-prefixes": [
                      {
                        "ip-prefix": ${prop.l3vpn.sna1-route.ip-prefix},
                        "next-hop": ${prop.l3vpn.sna1-route.next-hop}
                      }
                    ]
                  }
                ]
              }
              "bgp": {
                "peers": [
                  {
                    "peer-ip": ${prop.l3vpn.peer1-ip},
                    "remote-as": ${prop.l3vpn.ac1_protocol_bgp_as}
                  }
                ]
              }
            }
            }
          ]
        },
        "vpn-attachment": {
          "vpn-policy-id": ${prop.l3vpn.name}
        }
      }
    ]
  },
  {
    "site-id": ${prop.l3vpn.site2_name},
    "vpn-policies": {
    "vpn-policy": [
      {
        "vpn-policy-id": ${prop.l3vpn.vpn-policy2-id},
        "entries": [
        {
          "id": ${prop.l3vpn.entry2-id},
          "vpn": {
          "vpn-id": ${prop.l3vpn.name},
          "site-role": "huawei-ac-net-l3vpn-svc:any-to-any-role"
          }
        }
        ]
      }
      ]
    },
    "site-network-accesses": {
    "site-network-access": [
      {
        "site-network-access-id": ${prop.l3vpn.sna2_name},
      "bearer": {
        "appointed-access": {
          "ne-id": ${prop.l3vpn.pe2_id},
      "ltp-id": ${prop.l3vpn.ac2_id},
      "vlan": {
        "type": "huawei-ac-net-l3vpn-svc:vlan-dot1q",
        "vlan-id": ${prop.l3vpn.sna2_svlan}
    }
    }
    },
      "ip-connection": {
        "ipv4": {
          "address-allocation-type": "huawei-ac-net-l3vpn-svc:static-address",
          "addresses": {
            "provider-address": ${prop.l3vpn.ac2-peer-ip},
      "customer-address": ${prop.l3vpn.ac2-ip},
      "mask": "24"
      }
    }
    },
      "service": {
        "mtu": "1500"
      },
      "routing-protocols": {
        "routing-protocol": [
          {
            "type": ${prop.l3vpn.ac2_protocol},
            "static": {
              "cascaded-lan-prefixes": [
                {
                  "ipv4-lan-prefixes": [
                    {
                      "ip-prefix": ${prop.l3vpn.sna2-route.ip-prefix},
                      "next-hop": ${prop.l3vpn.sna2-route.next-hop}
                  }
                  ]
                }
              ]
            }
            "bgp": {
              "peers": [
                {
                  "peer-ip": ${prop.l3vpn.peer2-ip},
                  "remote-as": ${prop.l3vpn.ac2_protocol_bgp_as}
                }
              ]
            }
          }
        ]
      },
      "vpn-attachment": {
        "vpn-policy-id": ${prop.l3vpn.name}
    }
    }
    ]
  }
 ]
}