Matteo Scandolo | ddce4ec | 2016-09-26 13:11:03 -0700 | [diff] [blame] | 1 | from xosresource import XOSResource |
Zack Williams | c8e1462 | 2016-10-05 17:59:56 -0700 | [diff] [blame] | 2 | from service import XOSService |
Andrea Campanella | 65e91e6 | 2017-05-22 17:50:37 +0200 | [diff] [blame] | 3 | from services.metronet.models import * |
Andrea Campanella | 1123755 | 2017-03-21 17:21:20 +0100 | [diff] [blame] | 4 | |
| 5 | class XOSMetronetUNI(XOSResource): |
Andrea Campanella | 65e91e6 | 2017-05-22 17:50:37 +0200 | [diff] [blame] | 6 | provides = "tosca.nodes.UserNetworkInterface" |
Andrea Campanella | 1123755 | 2017-03-21 17:21:20 +0100 | [diff] [blame] | 7 | xos_model = UserNetworkInterface |
Andrea Campanella | 65e91e6 | 2017-05-22 17:50:37 +0200 | [diff] [blame] | 8 | copyin_props = ['tenant','vlanIds', 'cpe_id', 'latlng', 'name'] |
| 9 | |
| 10 | class XOSMetronetEnterpriseLocation(XOSResource): |
| 11 | provides = "tosca.nodes.EnterpriseLocation" |
| 12 | xos_model = EnterpriseLocation |
| 13 | copyin_props = ['name', 'cord_site_ip', 'cord_site_port', 'cord_site_username', 'cord_site_password', 'cord_site_type'] |
| 14 | |
| 15 | class XOSMetronetOnosModel(XOSResource): |
| 16 | provides = "tosca.nodes.OnosModel" |
| 17 | xos_model = OnosModel |
| 18 | copyin_props = ['name', 'onos_ip', 'onos_port', 'onos_username', 'onos_password', 'onos_type'] |
| 19 | |
| 20 | class XOSMetronetBandwithProfile(XOSResource): |
| 21 | provides = "tosca.nodes.BandwidthProfile" |
| 22 | xos_model = BandwidthProfile |
| 23 | copyin_props = ['cbs', 'ebs', 'cir', 'eir', 'name'] |
| 24 | |
| 25 | class XOSMetronetELine(XOSResource): |
| 26 | provides = "tosca.nodes.ELine" |
| 27 | xos_model = ELine |
| 28 | copyin_props = ['name', 'connect_point_1_id', 'connect_point_2_id', 'vlanids', 'cord_site_name', 'bwp'] |