blob: 8f764d092c6b9c598ec4a23ed2e60860cfed7aa3 [file] [log] [blame]
tosca_definitions_version: tosca_simple_yaml_1_0
description: Setup MCORD-related services.
imports:
- custom_types/xos.yaml
node_types:
tosca.nodes.MCORDComponent:
derived_from: tosca.nodes.Root
description: >
CORD: A Service Component of MCORD Service.
properties:
kind:
type: string
default: generic
description: Kind of component
topology_template:
node_templates:
service_mcord:
type: tosca.nodes.Service
requirements:
properties:
kind: mcordservice
Private:
type: tosca.nodes.NetworkTemplate
mcord_network:
type: tosca.nodes.network.Network.XOS
properties:
ip_version: 4
labels: mcord_service_internal_net
cidr: 172.16.16.0/24
start_ip: 172.16.16.1
end_ip: 172.16.16.5
gateway_ip: 172.16.16.1
requirements:
- network_template:
node: Private
relationship: tosca.relationships.UsesNetworkTemplate
- owner:
node: mysite_mcord_slice1
relationship: tosca.relationships.MemberOfSlice
- connection:
node: mysite_mcord_slice1
relationship: tosca.relationships.ConnectsToSlice
mysite:
type: tosca.nodes.Site
mcord-server-image-s1:
type: tosca.nodes.Image
trusty-server-multi-nic:
type: tosca.nodes.Image
mysite_mcord_slice1:
description: MCORD Service Slice 1
type: tosca.nodes.Slice
requirements:
- mcord_service:
node: service_mcord
relationship: tosca.relationships.MemberOfService
- site:
node: mysite
relationship: tosca.relationships.MemberOfSite
- default_image:
node: trusty-server-multi-nic
# node: mcord-server-image-s1
relationship: tosca.relationships.DefaultImage
properties:
default_flavor: m1.medium
default_node: ip-10-0-10-125
my_service_mcord_component1:
description: MCORD Service default Component
type: tosca.nodes.MCORDComponent
# properties:
# view_url: /mcord/?service=vBBU
# kind: RAN
requirements:
- provider_service:
node: service_mcord
relationship: tosca.relationships.MemberOfService
- mcord_slice:
node: mysite_mcord_slice1
relationship: tosca.relationships.MemberOfSlice
# Nodes
compute9:
type: tosca.nodes.Node
properties:
view_url: /mcord/?service=vBBU
kind: RAN
requirements:
- site:
node: mysite
relationship: tosca.relationships.MemberOfSite
- deployment:
node: MyDeployment
relationship: tosca.relationships.MemberOfDeployment