1 # -*- coding: utf-8 -*-
3 #######################################################################################
4 # This file is part of OSM RO module
6 # Copyright ETSI Contributors and Others.
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
12 # http://www.apache.org/licenses/LICENSE-2.0
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
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.
24 # - Lluis Gifre <lluis.gifre@cttc.es>
25 # - Ricard Vilalta <ricard.vilalta@cttc.es>
26 #######################################################################################
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."""
31 REQUESTED_CAPACITY_TEMPLATE
= {"total-size": {"value": None, "unit": "GBPS"}}
33 VLAN_CONSTRAINT_TEMPLATE
= {"vlan-id": None}
36 "service-interface-point": {"service-interface-point-uuid": None},
37 "layer-protocol-name": None,
38 "layer-protocol-qualifier": None,
43 "tapi-connectivity:connectivity-service": [
46 # "requested-capacity": REQUESTED_CAPACITY_TEMPLATE,
47 "connectivity-direction": "UNIDIRECTIONAL",
49 # "vlan-constraint": VLAN_CONSTRAINT_TEMPLATE,
54 DELETE_TEMPLATE
= {"tapi-connectivity:input": {"uuid": None}}