Merge "SDWAN VPN DG deletion template addition"
[sdnc/oam.git] / platform-logic / restapi-templates / src / main / json / sotn-ethernet-service.json
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - CCSDK
4  * ================================================================================
5  * Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 {
22     "ietf-eth-tran-service:etht-svc": {
23         "globals": {
24             "etht-svc-bandwidth-profiles": [
25                 {
26                     "bandwidth-profile-name": ${prop.global.sotn.bandwidth-profile-name},
27                     "bandwidth-profile-type": "ietf-eth-tran-types:mef-10-bwp",
28                     "CIR": ${prop.global.sotn.cir},
29                     "EIR": ${prop.global.sotn.eir},
30                     "color-aware": ${prop.global.sotn.colorAware},
31                     "coupling-flag": ${prop.global.sotn.couplingFlag}
32                 }
33             ]
34         },
35         "etht-svc-instances": [
36             {
37                 "etht-svc-name": ${prop.global.sotn.etht-svc-name},
38                 "access-provider-id": ${oof.vpn.access-provider-id},
39                 "access-client-id": ${oof.vpn.access-client-id},
40                 "access-topology-id": ${oof.vpn.access-topology-id},
41                 "etht-svc-type": "ietf-eth-tran-types:p2p-svc",
42                 "admin-status": "ietf-te-types:tunnel-state-up",
43                 "etht-svc-access-ports": [
44                     {
45                         "access-port-id": "0",
46                         "access-node-id": ${oof.vpn.access-node-id},
47                         "access-ltp-id": ${oof.vpn.src-access-ltp-id},
48                         "service-classification-type": "ietf-eth-tran-types:port-classification",
49                         "ingress-egress-bandwidth-profile-name": ${prop.global.sotn.bandwidth-profile-name}
50                     },
51                     {
52                         "access-port-id": "1",
53                         "access-node-id": ${oof.vpn.access-node-id},
54                         "access-ltp-id": ${oof.vpn.dst-access-ltp-id},
55                         "service-classification-type": "ietf-eth-tran-types:port-classification",
56                         "ingress-egress-bandwidth-profile-name": ${prop.global.sotn.bandwidth-profile-name}
57                     }
58                 ]
59             }
60         ]
61     }
62 }