Creating a private network for exampleservice to make it composable with other CORD service
Change-Id: Ib85e4a109b367840aea37f4e7e26ed46126a1ea1
diff --git a/roles/xos-install/templates/exampleservice.yaml.j2 b/roles/xos-install/templates/exampleservice.yaml.j2
index 53c2173..9e5f4e5 100644
--- a/roles/xos-install/templates/exampleservice.yaml.j2
+++ b/roles/xos-install/templates/exampleservice.yaml.j2
@@ -49,6 +49,22 @@
no-update: true
# ExampleService/ExampleTenant
+ exampleservice_network:
+ type: tosca.nodes.network.Network.XOS
+ properties:
+ ip_version: 4
+ labels: exampleservice_private_network
+ requirements:
+ - network_template:
+ node: Private
+ relationship: tosca.relationships.UsesNetworkTemplate
+ - owner:
+ node: {{ site_name }}_exampleservice
+ relationship: tosca.relationships.MemberOfSlice
+ - connection:
+ node: {{ site_name }}_exampleservice
+ relationship: tosca.relationships.ConnectsToSlice
+
{{ site_name }}_exampleservice:
description: This slice holds the ExampleService