Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 1 | import os |
| 2 | import pdb |
| 3 | import sys |
| 4 | import tempfile |
| 5 | sys.path.append("/opt/tosca") |
| 6 | from translator.toscalib.tosca_template import ToscaTemplate |
| 7 | |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame^] | 8 | from services.metronetwork.models import * |
Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 9 | |
| 10 | from service import XOSService |
Matteo Scandolo | ddce4ec | 2016-09-26 13:11:03 -0700 | [diff] [blame] | 11 | from xosresource import XOSResource |
| 12 | |
Matteo Scandolo | 770c49f | 2016-09-23 15:07:38 -0700 | [diff] [blame] | 13 | |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame^] | 14 | class XOSMetroNetworkSystem(XOSResource): |
| 15 | provides = "tosca.nodes.MetroNetworkSystem" |
| 16 | xos_model = MetroNetworkSystem |
| 17 | copyin_props = ["name", "administrativeState", "restUrl"] |
Matteo Scandolo | ddce4ec | 2016-09-26 13:11:03 -0700 | [diff] [blame] | 18 | |
| 19 | class MetroNetworkDevice(XOSResource): |
| 20 | provides = "tosca.nodes.MetroNetworkDevice" |
| 21 | xos_model = NetworkDevice |
Matteo Scandolo | 9563aeb | 2016-09-28 16:07:58 -0700 | [diff] [blame^] | 22 | copyin_props = ["id", "name", "administrativeState", "username", "password", "authType", "restCtrlUrl"] |