blob: f615bf377541032a3a7579957ff00045c677ca4f [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 Scandolo9563aeb2016-09-28 16:07:58 -07008from services.metronetwork.models import *
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
Matteo Scandolo9563aeb2016-09-28 16:07:58 -070014class XOSMetroNetworkSystem(XOSResource):
15 provides = "tosca.nodes.MetroNetworkSystem"
16 xos_model = MetroNetworkSystem
17 copyin_props = ["name", "administrativeState", "restUrl"]
Matteo Scandoloddce4ec2016-09-26 13:11:03 -070018
19class MetroNetworkDevice(XOSResource):
20 provides = "tosca.nodes.MetroNetworkDevice"
21 xos_model = NetworkDevice
Matteo Scandolo9563aeb2016-09-28 16:07:58 -070022 copyin_props = ["id", "name", "administrativeState", "username", "password", "authType", "restCtrlUrl"]