blob: 2799702be9b7daa563a0ac63cb633712bedc7094 [file] [log] [blame]
Andrea Campanella95c02bd2017-09-01 16:51:03 +02001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
17from xosresource import XOSResource
18from service import XOSService
19from services.vnaas.models import *
20
21class XOSvNaaSUNI(XOSResource):
22 provides = "tosca.nodes.UserNetworkInterface"
23 xos_model = UserNetworkInterface
24 copyin_props = ['tenant','vlanIds', 'cpe_id', 'latlng', 'name']
25
26class XOSvNaaSEnterpriseLocation(XOSResource):
27 provides = "tosca.nodes.EnterpriseLocation"
28 xos_model = EnterpriseLocation
29 copyin_props = ['name', 'cord_site_ip', 'cord_site_port', 'cord_site_username', 'cord_site_password', 'cord_site_type']
30
31class XOSvNaaSOnosModel(XOSResource):
32 provides = "tosca.nodes.OnosModel"
33 xos_model = OnosModel
34 copyin_props = ['name', 'onos_ip', 'onos_port', 'onos_username', 'onos_password', 'onos_type']
35
36class XOSvNaaSBandwithProfile(XOSResource):
37 provides = "tosca.nodes.BandwidthProfile"
38 xos_model = BandwidthProfile
39 copyin_props = ['cbs', 'ebs', 'cir', 'eir', 'name']
40
41class XOSvNaaSELine(XOSResource):
42 provides = "tosca.nodes.ELine"
43 xos_model = ELine
44 copyin_props = ['name', 'connect_point_1_id', 'connect_point_2_id', 'vlanids', 'cord_site_name', 'bwp']