| gifrerenom | 0e51779 | 2023-04-18 16:38:42 +0000 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | |
| 3 | ####################################################################################### |
| 4 | # This file is part of OSM RO module |
| 5 | # |
| 6 | # Copyright ETSI Contributors and Others. |
| 7 | # |
| 8 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 9 | # not use this file except in compliance with the License. You may obtain |
| 10 | # 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, WITHOUT |
| 16 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 17 | # License for the specific language governing permissions and limitations |
| 18 | # under the License. |
| 19 | ####################################################################################### |
| 20 | # This work has been performed in the context of the TeraFlow Project - |
| 21 | # funded by the European Commission under Grant number 101015857 through the |
| 22 | # Horizon 2020 program. |
| 23 | # Contributors: |
| 24 | # - Lluis Gifre <lluis.gifre@cttc.es> |
| 25 | # - Ricard Vilalta <ricard.vilalta@cttc.es> |
| 26 | ####################################################################################### |
| 27 | |
| 28 | """This file contains the template JSON-encoded messages used to compose the Transport |
| 29 | API (TAPI) messages sent by the TAPI WIM connector to the WIM.""" |
| 30 | |
| 31 | REQUESTED_CAPACITY_TEMPLATE = {"total-size": {"value": None, "unit": "GBPS"}} |
| 32 | |
| 33 | VLAN_CONSTRAINT_TEMPLATE = {"vlan-id": None} |
| 34 | |
| 35 | ENDPOINT_TEMPLATE = { |
| 36 | "service-interface-point": {"service-interface-point-uuid": None}, |
| 37 | "layer-protocol-name": None, |
| 38 | "layer-protocol-qualifier": None, |
| 39 | "local-id": None, |
| 40 | } |
| 41 | |
| 42 | CREATE_TEMPLATE = { |
| 43 | "tapi-connectivity:connectivity-service": [ |
| 44 | { |
| 45 | "uuid": None, |
| 46 | # "requested-capacity": REQUESTED_CAPACITY_TEMPLATE, |
| 47 | "connectivity-direction": "UNIDIRECTIONAL", |
| 48 | "end-point": [], |
| 49 | # "vlan-constraint": VLAN_CONSTRAINT_TEMPLATE, |
| 50 | } |
| 51 | ] |
| 52 | } |
| 53 | |
| 54 | DELETE_TEMPLATE = {"tapi-connectivity:input": {"uuid": None}} |