blob: 7d898c33d3fe5196e4c60d50c721db2c3b5b2319 [file] [log] [blame]
Matteo Scandolo770c49f2016-09-23 15:07:38 -07001import os
2import pdb
3import sys
4import tempfile
5sys.path.append("/opt/tosca")
6from translator.toscalib.tosca_template import ToscaTemplate
7
Matteo Scandoloddce4ec2016-09-26 13:11:03 -07008from services.metronetwork.models import MetroNetworkService, NetworkDevice
Matteo Scandolo770c49f2016-09-23 15:07:38 -07009
10from service import XOSService
Matteo Scandoloddce4ec2016-09-26 13:11:03 -070011from xosresource import XOSResource
12
Matteo Scandolo770c49f2016-09-23 15:07:38 -070013
14class XOSMetroNetworkService(XOSService):
15 provides = "tosca.nodes.MetroNetworkService"
16 xos_model = MetroNetworkService
17 copyin_props = ["view_url", "icon_url", "enabled", "published", "versionNumber"]
Matteo Scandoloddce4ec2016-09-26 13:11:03 -070018
19
20class MetroNetworkDevice(XOSResource):
21 provides = "tosca.nodes.MetroNetworkDevice"
22 xos_model = NetworkDevice
23 copyin_props = ["name", "administrativeState", "username", "password", "authType", "restCtrlUrl"]