CORD-3195 create trustdomain for exampleservice
Change-Id: I9c61134605bc91b3a49e785c439e3795bf144dd7
diff --git a/xos-services/exampleservice/templates/_tosca.tpl b/xos-services/exampleservice/templates/_tosca.tpl
index eeb8e20..0c485d8 100644
--- a/xos-services/exampleservice/templates/_tosca.tpl
+++ b/xos-services/exampleservice/templates/_tosca.tpl
@@ -25,6 +25,8 @@
- custom_types/network.yaml
- custom_types/networktemplate.yaml
- custom_types/networkslice.yaml
+ - custom_types/openstackservice.yaml
+ - custom_types/trustdomain.yaml
- custom_types/exampleservice.yaml
- custom_types/exampleserviceinstance.yaml
@@ -32,6 +34,20 @@
topology_template:
node_templates:
+ service#openstack:
+ type: tosca.nodes.OpenStackService
+ properties:
+ name: "OpenStack"
+ must-exist: true
+
+ untrusted_trustdomain:
+ type: tosca.nodes.TrustDomain
+ properties:
+ name: "untrusted-openstack"
+ requirements:
+ - owner:
+ node: service#openstack
+ relationship: tosca.relationships.BelongsToOne
# site, image, fully created in deployment.yaml
mysite:
@@ -109,6 +125,9 @@
- default_flavor:
node: m1.small
relationship: tosca.relationships.BelongsToOne
+ - trust_domain:
+ node: untrusted_trustdomain
+ relationship: tosca.relationships.BelongsToOne
# ExampleService NetworkSlices
exampleservice_slice_management_network: