add 'kind' field to TOSCA service object, set vOLT kind to vOLT in cord sample
diff --git a/xos/tosca/custom_types/xos.m4 b/xos/tosca/custom_types/xos.m4
index 0200938..471bfc8 100644
--- a/xos/tosca/custom_types/xos.m4
+++ b/xos/tosca/custom_types/xos.m4
@@ -19,6 +19,9 @@
service:
type: tosca.capabilities.xos.Service)
define(xos_base_service_props,
+ kind:
+ type: string
+ default: generic
view_url:
type: string
required: false
diff --git a/xos/tosca/resources/service.py b/xos/tosca/resources/service.py
index 01aee1c..6b84d0b 100644
--- a/xos/tosca/resources/service.py
+++ b/xos/tosca/resources/service.py
@@ -12,7 +12,7 @@
class XOSService(XOSResource):
provides = "tosca.nodes.Service"
xos_model = Service
- copyin_props = ["view_url"]
+ copyin_props = ["view_url", "kind"]
def postprocess(self, obj):
for provider_service_name in self.get_requirements("tosca.relationships.TenantOfService"):
diff --git a/xos/tosca/samples/cord.yaml b/xos/tosca/samples/cord.yaml
index 83c9584..72a069d 100644
--- a/xos/tosca/samples/cord.yaml
+++ b/xos/tosca/samples/cord.yaml
@@ -16,6 +16,7 @@
relationship: tosca.relationships.TenantOfService
properties:
view_url: /admin/cord/voltservice/$id$/
+ kind: vOLT
service_vcpe:
type: tosca.nodes.VCPEService