add XOS object
diff --git a/xos/configurations/common/fixtures.yaml b/xos/configurations/common/fixtures.yaml
index e28b03c..6b3234e 100644
--- a/xos/configurations/common/fixtures.yaml
+++ b/xos/configurations/common/fixtures.yaml
@@ -8,6 +8,10 @@
topology_template:
node_templates:
+ xos:
+ type: tosca.nodes.XOS
+
+
# -----------------------------------------------------------------------------
# Network Parameter Types
# -----------------------------------------------------------------------------
diff --git a/xos/tosca/custom_types/xos.m4 b/xos/tosca/custom_types/xos.m4
index 473e313..c412176 100644
--- a/xos/tosca/custom_types/xos.m4
+++ b/xos/tosca/custom_types/xos.m4
@@ -6,6 +6,10 @@
include(macros.m4)
node_types:
+ tosca.nodes.XOS:
+ derived_from: tosca.nodes.Root
+ description: The root of XOS
+
tosca.nodes.Service:
derived_from: tosca.nodes.Root
description: >
@@ -17,6 +21,13 @@
xos_base_props
xos_base_service_props
+ tosca.nodes.ServiceController:
+ derived_from: tosca.nodes.Root
+ description: >
+ An XOS Service Controller.
+ properties:
+ xos_base_props
+
tosca.nodes.Tenant:
derived_from: tosca.nodes.Root
description: >
diff --git a/xos/tosca/custom_types/xos.yaml b/xos/tosca/custom_types/xos.yaml
index 67d5367..ba4c42b 100644
--- a/xos/tosca/custom_types/xos.yaml
+++ b/xos/tosca/custom_types/xos.yaml
@@ -21,6 +21,10 @@
node_types:
+ tosca.nodes.XOS:
+ derived_from: tosca.nodes.Root
+ description: The root of XOS
+
tosca.nodes.Service:
derived_from: tosca.nodes.Root
description: >
@@ -80,6 +84,28 @@
required: false
description: Version number of Service.
+ tosca.nodes.ServiceController:
+ derived_from: tosca.nodes.Root
+ description: >
+ An XOS Service Controller.
+ properties:
+ no-delete:
+ type: boolean
+ default: false
+ description: Do not allow Tosca to delete this object
+ no-create:
+ type: boolean
+ default: false
+ description: Do not allow Tosca to create this object
+ no-update:
+ type: boolean
+ default: false
+ description: Do not allow Tosca to update this object
+ replaces:
+ type: string
+ required: false
+ descrption: Replaces/renames this object
+
tosca.nodes.Tenant:
derived_from: tosca.nodes.Root
description: >
diff --git a/xos/tosca/resources/xosmodel.py b/xos/tosca/resources/xosmodel.py
new file mode 100644
index 0000000..29ee1a1
--- /dev/null
+++ b/xos/tosca/resources/xosmodel.py
@@ -0,0 +1,17 @@
+import os
+import pdb
+import sys
+import tempfile
+sys.path.append("/opt/tosca")
+from translator.toscalib.tosca_template import ToscaTemplate
+
+from core.models import XOS
+
+from xosresource import XOSResource
+
+class XOSXOS(XOSResource):
+ provides = "tosca.nodes.XOS"
+ xos_model = XOS
+
+
+