CORD-3024 M-CORD profile chart and service charts

Change-Id: Ic947da2a6e5c77e6c943200fd11f0b35b9c8655b
diff --git a/xos-profiles/mcord/.helmignore b/xos-profiles/mcord/.helmignore
new file mode 100644
index 0000000..f0c1319
--- /dev/null
+++ b/xos-profiles/mcord/.helmignore
@@ -0,0 +1,21 @@
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
diff --git a/xos-profiles/mcord/Chart.yaml b/xos-profiles/mcord/Chart.yaml
new file mode 100644
index 0000000..5fa482b
--- /dev/null
+++ b/xos-profiles/mcord/Chart.yaml
@@ -0,0 +1,21 @@
+---
+
+# Copyright 2018-present Open Networking Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+apiVersion: v1
+appVersion: "1.0"
+description: A Helm chart for the "mcord" profile
+name: mcord
+version: 0.1.0
diff --git a/xos-profiles/mcord/requirements.yaml b/xos-profiles/mcord/requirements.yaml
new file mode 100644
index 0000000..354f514
--- /dev/null
+++ b/xos-profiles/mcord/requirements.yaml
@@ -0,0 +1,47 @@
+---
+
+# Copyright 2018-present Open Networking Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+dependencies:
+- name: vmme
+  version: 0.1.0
+  repository: file://../../xos-services/vmme
+- name: vspgwc
+  version: 0.1.0
+  repository: file://../../xos-services/vspgwc
+- name: vspgwu
+  version: 0.1.0
+  repository: file://../../xos-services/vspgwu
+- name: vhss
+  version: 0.1.0
+  repository: file://../../xos-services/vhss
+- name: hssdb
+  version: 0.1.0
+  repository: file://../../xos-services/hssdb
+- name: internetemulator
+  version: 0.1.0
+  repository: file://../../xos-services/internetemulator
+- name: sdncontroller
+  version: 0.1.0
+  repository: file://../../xos-services/sdncontroller
+- name: epc-service
+  version: 0.1.0
+  repository: file://../../xos-services/epc-service
+- name: mcord-subscriber
+  version: 0.1.0
+  repository: file://../../xos-services/mcord-subscriber
+- name: progran
+  version: 0.1.0
+  repository: file://../../xos-services/progran
\ No newline at end of file
diff --git a/xos-profiles/mcord/templates/_helpers.tpl b/xos-profiles/mcord/templates/_helpers.tpl
new file mode 100644
index 0000000..0bd8908
--- /dev/null
+++ b/xos-profiles/mcord/templates/_helpers.tpl
@@ -0,0 +1,47 @@
+{{/* vim: set filetype=mustache: */}}
+{{/*
+Copyright 2018-present Open Networking Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/}}
+{{/*
+Expand the name of the chart.
+*/}}
+{{- define "mcord.name" -}}
+{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+
+{{/*
+Create a default fully qualified app name.
+We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
+If release name contains chart name it will be used as a full name.
+*/}}
+{{- define "mcord.fullname" -}}
+{{- if .Values.fullnameOverride -}}
+{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
+{{- else -}}
+{{- $name := default .Chart.Name .Values.nameOverride -}}
+{{- if contains $name .Release.Name -}}
+{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
+{{- else -}}
+{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Create chart name and version as used by the chart label.
+*/}}
+{{- define "mcord.chart" -}}
+{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
+{{- end -}}
diff --git a/xos-profiles/mcord/templates/_tosca.tpl b/xos-profiles/mcord/templates/_tosca.tpl
new file mode 100644
index 0000000..924d846
--- /dev/null
+++ b/xos-profiles/mcord/templates/_tosca.tpl
@@ -0,0 +1,573 @@
+{{/* vim: set filetype=mustache: */}}
+{{/*
+Copyright 2018-present Open Networking Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/}}
+{{- define "mcord.fixtureTosca" -}}
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+imports:
+  - custom_types/deployment.yaml
+  - custom_types/site.yaml
+  - custom_types/networktemplate.yaml
+  - custom_types/network.yaml
+  - custom_types/networkslice.yaml
+  - custom_types/sitedeployment.yaml
+
+description: set up site and deployment and link them
+
+topology_template:
+  node_templates:
+
+    {{ .Values.cordSiteName }}:
+      type: tosca.nodes.Site
+      properties:
+          name: {{ .Values.cordSiteName }}
+          site_url: http://mysite.opencord.us/
+          hosts_nodes: true
+
+    {{ .Values.cordDeploymentName }}:
+      type: tosca.nodes.Deployment
+      properties:
+        name: {{ .Values.cordDeploymentName }}
+{{- end -}}
+
+{{- define "mcord.serviceGraphTosca" -}}
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+imports:
+   - custom_types/internetemulatorservice.yaml
+   - custom_types/hssdbservice.yaml
+   - custom_types/mcordsubscriberservice.yaml
+   - custom_types/progranservice.yaml
+   - custom_types/sdncontrollerservice.yaml
+   - custom_types/vepcservice.yaml
+   - custom_types/vhssservice.yaml
+   - custom_types/vmmeservice.yaml
+   - custom_types/vspgwcservice.yaml
+   - custom_types/vspgwuservice.yaml
+   - custom_types/servicegraphconstraint.yaml
+   - custom_types/servicedependency.yaml
+   - custom_types/serviceinstancelink.yaml
+
+description: Configures the base-openstack service graph
+
+topology_template:
+  node_templates:
+
+    service#vmme:
+      type: tosca.nodes.VMMEService
+      properties:
+        name: vmme
+        must-exist: true
+
+    service#vspgwc:
+      type: tosca.nodes.VSPGWCService
+      properties:
+        name: vspgwc
+        must-exist: true
+
+    service#vspgwu:
+      type: tosca.nodes.VSPGWUService
+      properties:
+        name: vspgwu
+        must-exist: true
+
+    service#vhss:
+      type: tosca.nodes.VHSSService
+      properties:
+        name: vhss
+        must-exist: true
+
+    service#hssdb:
+      type: tosca.nodes.HSSDBService
+      properties:
+        name: hssdb
+        must-exist: true
+
+    service#internetemulator:
+      type: tosca.nodes.InternetEmulatorService
+      properties:
+        name: internetemulator
+        must-exist: true
+
+    service#sdncontroller:
+      type: tosca.nodes.SDNControllerService
+      properties:
+        name: sdncontroller
+        must-exist: true
+
+    service#vepc:
+      type: tosca.nodes.VEPCService
+      properties:
+        name: vepc
+        must-exist: true
+
+    service#progran:
+      type: tosca.nodes.ProgranService
+      properties:
+        name: progran
+        must-exist: true
+
+    service#mcord:
+      type: tosca.nodes.MCordSubscriberService
+      properties:
+        name: mcord
+
+    vmme_vspgwc:
+      type: tosca.nodes.ServiceDependency
+      properties:
+        connect_method: None
+      requirements:
+        - subscriber_service:
+            node: service#vmme
+            relationship: tosca.relationships.BelongsToOne
+        - provider_service:
+            node: service#vspgwc
+            relationship: tosca.relationships.BelongsToOne
+
+    vmme_vspgwu:
+      type: tosca.nodes.ServiceDependency
+      properties:
+        connect_method: None
+      requirements:
+        - subscriber_service:
+            node: service#vmme
+            relationship: tosca.relationships.BelongsToOne
+        - provider_service:
+            node: service#vspgwu
+            relationship: tosca.relationships.BelongsToOne
+
+    vspgwc_vspgwu:
+      type: tosca.nodes.ServiceDependency
+      properties:
+        connect_method: None
+      requirements:
+        - subscriber_service:
+            node: service#vspgwc
+            relationship: tosca.relationships.BelongsToOne
+        - provider_service:
+            node: service#vspgwu
+            relationship: tosca.relationships.BelongsToOne
+
+    vmme_vhss:
+      type: tosca.nodes.ServiceDependency
+      properties:
+        connect_method: None
+      requirements:
+        - subscriber_service:
+            node: service#vmme
+            relationship: tosca.relationships.BelongsToOne
+        - provider_service:
+            node: service#vhss
+            relationship: tosca.relationships.BelongsToOne
+
+    vhss_hssdb:
+      type: tosca.nodes.ServiceDependency
+      properties:
+        connect_method: None
+      requirements:
+        - subscriber_service:
+            node: service#vhss
+            relationship: tosca.relationships.BelongsToOne
+        - provider_service:
+            node: service#hssdb
+            relationship: tosca.relationships.BelongsToOne
+
+    mcord_vmme:
+      type: tosca.nodes.ServiceDependency
+      properties:
+        connect_method: None
+      requirements:
+        - subscriber_service:
+            node: service#vmme
+            relationship: tosca.relationships.BelongsToOne
+        - provider_service:
+            node: service#mcord
+            relationship: tosca.relationships.BelongsToOne
+
+    constraints:
+      type: tosca.nodes.ServiceGraphConstraint
+      properties:
+        constraints: '[ ["vepc", null, "mcord", null, null], [null, null, "progran", null, null], ["hssdb", "vhss", "vmme", null, null], [null, "vspgwc", "sdncontroller","vspgwu", null], [null, null, null, "internetemulator", null] ]'
+{{- end -}}
+
+{{- define "mcord.sliceTosca" -}}
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+imports:
+   - custom_types/internetemulatorservice.yaml
+   - custom_types/hssdbservice.yaml
+   - custom_types/mcordsubscriberservice.yaml
+   - custom_types/progranservice.yaml
+   - custom_types/sdncontrollerservice.yaml
+   - custom_types/vepcservice.yaml
+   - custom_types/vhssservice.yaml
+   - custom_types/vmmeservice.yaml
+   - custom_types/vspgwcservice.yaml
+   - custom_types/vspgwuservice.yaml
+   - custom_types/servicegraphconstraint.yaml
+   - custom_types/servicedependency.yaml
+   - custom_types/serviceinstancelink.yaml
+   - custom_types/site.yaml
+   - custom_types/slice.yaml
+   - custom_types/flavor.yaml
+   - custom_types/image.yaml
+
+description: Configures the M-CORD slices
+
+topology_template:
+  node_templates:
+
+    {{ .Values.cordSiteName }}:
+      type: tosca.nodes.Site
+      properties:
+        name: {{ .Values.cordSiteName }}
+        must-exist: true
+
+    service#vmme:
+      type: tosca.nodes.VMMEService
+      properties:
+        name: vmme
+        must-exist: true
+
+    service#vspgwc:
+      type: tosca.nodes.VSPGWCService
+      properties:
+        name: vspgwc
+        must-exist: true
+
+    service#vspgwu:
+      type: tosca.nodes.VSPGWUService
+      properties:
+        name: vspgwu
+        must-exist: true
+
+    service#vhss:
+      type: tosca.nodes.VHSSService
+      properties:
+        name: vhss
+        must-exist: true
+
+    service#hssdb:
+      type: tosca.nodes.HSSDBService
+      properties:
+        name: hssdb
+        must-exist: true
+
+    service#internetemulator:
+      type: tosca.nodes.InternetEmulatorService
+      properties:
+        name: internetemulator
+        must-exist: true
+
+    service#sdncontroller:
+      type: tosca.nodes.SDNControllerService
+      properties:
+        name: sdncontroller
+        must-exist: true
+
+    m1.small:
+      type: tosca.nodes.Flavor
+      properties:
+        name: m1.small
+        must-exist: true
+
+    m1.large:
+      type: tosca.nodes.Flavor
+      properties:
+        name: m1.large
+        must-exist: true
+
+    m1.xlarge:
+      type: tosca.nodes.Flavor
+      properties:
+        name: m1.xlarge
+        must-exist: true
+
+    image_mme:
+      type: tosca.nodes.Image
+      properties:
+        name: image_mme_{{ .Values.vmme.vnfImageVersion }}
+        must-exist: true
+
+    image_spgwc:
+      type: tosca.nodes.Image
+      properties:
+        name: image_spgwc_{{ .Values.vspgwc.vnfImageVersion }}
+        must-exist: true
+
+    image_spgwu:
+      type: tosca.nodes.Image
+      properties:
+        name: image_spgwu_{{ .Values.vspgwu.vnfImageVersion }}
+        must-exist: true
+
+    image_hss:
+      type: tosca.nodes.Image
+      properties:
+        name: image_hss_{{ .Values.vhss.vnfImageVersion }}
+        must-exist: true
+
+    image_hssdb:
+      type: tosca.nodes.Image
+      properties:
+        name: image_hssdb_{{ .Values.hssdb.vnfImageVersion }}
+        must-exist: true
+
+    image_internetemulator:
+      type: tosca.nodes.Image
+      properties:
+        name: image_internetemulator_{{ .Values.internetemulator.vnfImageVersion }}
+        must-exist: true
+
+    image_sdncontroller:
+      type: tosca.nodes.Image
+      properties:
+        name: image_sdncontroller_{{ .Values.sdncontroller.vnfImageVersion }}
+        must-exist: true
+
+    {{ .Values.cordSiteName }}_vmme:
+      description: vMME Service Slice
+      type: tosca.nodes.Slice
+      properties:
+          name: {{ .Values.cordSiteName }}_vmme
+          default_isolation: vm
+          network: noauto
+      requirements:
+          - site:
+              node: {{ .Values.cordSiteName }}
+              relationship: tosca.relationships.BelongsToOne
+          - service:
+              node: service#vmme
+              relationship: tosca.relationships.BelongsToOne
+          - default_image:
+              node: image_mme
+              relationship: tosca.relationships.BelongsToOne
+          - default_flavor:
+              node: m1.large
+              relationship: tosca.relationships.BelongsToOne
+
+    {{ .Values.cordSiteName }}_vspgwc:
+      description: vSPGW-C slice
+      type: tosca.nodes.Slice
+      properties:
+          name: {{ .Values.cordSiteName }}_vspgwc
+          default_isolation: vm
+          network: noauto
+      requirements:
+          - site:
+              node: {{ .Values.cordSiteName }}
+              relationship: tosca.relationships.BelongsToOne
+          - service:
+              node: service#vspgwc
+              relationship: tosca.relationships.BelongsToOne
+          - default_image:
+              node: image_spgwc
+              relationship: tosca.relationships.BelongsToOne
+          - default_flavor:
+              node: m1.large
+              relationship: tosca.relationships.BelongsToOne
+
+    {{ .Values.cordSiteName }}_vspgwu:
+      description: vSPGW-U slice
+      type: tosca.nodes.Slice
+      properties:
+          name: {{ .Values.cordSiteName }}_vspgwu
+          default_isolation: vm
+          network: noauto
+      requirements:
+          - site:
+              node: {{ .Values.cordSiteName }}
+              relationship: tosca.relationships.BelongsToOne
+          - service:
+              node: service#vspgwu
+              relationship: tosca.relationships.BelongsToOne
+          - default_image:
+              node: image_spgwu
+              relationship: tosca.relationships.BelongsToOne
+          - default_flavor:
+              node: m1.xlarge
+              relationship: tosca.relationships.BelongsToOne
+
+    {{ .Values.cordSiteName }}_vhss:
+      description: vHSS Service Slice
+      type: tosca.nodes.Slice
+      properties:
+          name: {{ .Values.cordSiteName }}_vhss
+          default_isolation: vm
+          network: noauto
+      requirements:
+          - site:
+              node: {{ .Values.cordSiteName }}
+              relationship: tosca.relationships.BelongsToOne
+          - service:
+              node: service#vhss
+              relationship: tosca.relationships.BelongsToOne
+          - default_image:
+              node: image_hss
+              relationship: tosca.relationships.BelongsToOne
+          - default_flavor:
+              node: m1.large
+              relationship: tosca.relationships.BelongsToOne
+
+    {{ .Values.cordSiteName }}_hssdb:
+      description: HSS-DB Service Slice
+      type: tosca.nodes.Slice
+      properties:
+          name: {{ .Values.cordSiteName }}_hssdb
+          default_isolation: vm
+          network: noauto
+      requirements:
+          - site:
+              node: {{ .Values.cordSiteName }}
+              relationship: tosca.relationships.BelongsToOne
+          - service:
+              node: service#hssdb
+              relationship: tosca.relationships.BelongsToOne
+          - default_image:
+              node: image_hssdb
+              relationship: tosca.relationships.BelongsToOne
+          - default_flavor:
+              node: m1.large
+              relationship: tosca.relationships.BelongsToOne
+
+    {{ .Values.cordSiteName }}_internetemulator:
+      description: Internetemulator Service Slice
+      type: tosca.nodes.Slice
+      properties:
+          name: {{ .Values.cordSiteName }}_internetemulator
+          default_isolation: vm
+          network: noauto
+      requirements:
+          - site:
+              node: {{ .Values.cordSiteName }}
+              relationship: tosca.relationships.BelongsToOne
+          - service:
+              node: service#internetemulator
+              relationship: tosca.relationships.BelongsToOne
+          - default_image:
+              node: image_internetemulator
+              relationship: tosca.relationships.BelongsToOne
+          - default_flavor:
+              node: m1.small
+              relationship: tosca.relationships.BelongsToOne
+
+    {{ .Values.cordSiteName }}_sdncontroller:
+      description: SDN controller slice
+      type: tosca.nodes.Slice
+      properties:
+          name: {{ .Values.cordSiteName }}_sdncontroller
+          default_isolation: vm
+          network: noauto
+      requirements:
+          - site:
+              node: {{ .Values.cordSiteName }}
+              relationship: tosca.relationships.BelongsToOne
+          - service:
+              node: service#sdncontroller
+              relationship: tosca.relationships.BelongsToOne
+          - default_image:
+              node: image_sdncontroller
+              relationship: tosca.relationships.BelongsToOne
+          - default_flavor:
+              node: m1.small
+              relationship: tosca.relationships.BelongsToOne
+{{- end -}}
+
+{{- define "mcord.networkTosca" -}}
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+imports:
+   - custom_types/networktemplate.yaml
+   - custom_types/slice.yaml
+   - custom_types/networkslice.yaml
+   - custom_types/network.yaml
+
+description: Configures the M-CORD network templates, vEPC will create the networks
+
+topology_template:
+  node_templates:
+
+    private_template:
+      type: tosca.nodes.NetworkTemplate
+      properties:
+        name: private_template
+        visibility: private
+        translation: none
+        vtn_kind: PRIVATE
+
+    flat_template:
+      type: tosca.nodes.NetworkTemplate
+      properties:
+        name: flat_template
+        visibility: private
+        translation: none
+        vtn_kind: FLAT
+
+# Network Slices for InternetEmulator, not created by EPC
+
+    management:
+      type: tosca.nodes.Network
+      properties:
+        name: management
+        must-exist: true
+
+    {{ .Values.cordSiteName }}_internetemulator:
+      type: tosca.nodes.Slice
+      properties:
+        name: {{ .Values.cordSiteName }}_internetemulator
+        must-exist: true
+
+    {{ .Values.cordSiteName }}_vspgwu:
+      type: tosca.nodes.Slice
+      properties:
+        name: {{ .Values.cordSiteName }}_vspgwu
+        must-exist: true
+
+    sgi_network:
+      type: tosca.nodes.Network
+      properties:
+          name: sgi_network
+          subnet: 115.0.0.0/24
+          permit_all_slices: true
+      requirements:
+          - template:
+              node: private_template
+              relationship: tosca.relationships.BelongsToOne
+          - owner:
+              node: {{ .Values.cordSiteName }}_vspgwu
+              relationship: tosca.relationships.BelongsToOne
+
+    internetemulator_slice_management_network:
+      type: tosca.nodes.NetworkSlice
+      requirements:
+        - network:
+            node: management
+            relationship: tosca.relationships.BelongsToOne
+        - slice:
+            node: {{ .Values.cordSiteName }}_internetemulator
+            relationship: tosca.relationships.BelongsToOne
+
+    internetemulator_slice_sgi_network:
+      type: tosca.nodes.NetworkSlice
+      requirements:
+        - network:
+            node: sgi_network
+            relationship: tosca.relationships.BelongsToOne
+        - slice:
+            node: {{ .Values.cordSiteName }}_internetemulator
+            relationship: tosca.relationships.BelongsToOne
+
+{{- end -}}
diff --git a/xos-profiles/mcord/templates/tosca-configmap.yaml b/xos-profiles/mcord/templates/tosca-configmap.yaml
new file mode 100644
index 0000000..6c9f905
--- /dev/null
+++ b/xos-profiles/mcord/templates/tosca-configmap.yaml
@@ -0,0 +1,49 @@
+---
+
+# Copyright 2018-present Open Networking Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: mcord-tosca
+data:
+  010-fixtures.yaml: |
+{{ include "mcord.fixtureTosca" . | indent 4 }}
+  020-vspgwu-service.yaml: |
+{{ include "vspgwu.serviceTosca" .Values.vspgwu | indent 4 }}
+  030-vspgwc-service.yaml: |
+{{ include "vspgwc.serviceTosca" .Values.vspgwc | indent 4 }}
+  040-vmme-service.yaml: |
+{{ include "vmme.serviceTosca" .Values.vmme | indent 4 }}
+  050-vhss-service.yaml: |
+{{ include "vhss.serviceTosca" .Values.vhss | indent 4 }}
+  060-hssdb-service.yaml: |
+{{ include "hssdb.serviceTosca" .Values.hssdb | indent 4 }}
+  070-internetemulator-service.yaml: |
+{{ include "internetemulator.serviceTosca" .Values.internetemulator | indent 4 }}
+  080-progran-service.yaml: |
+{{ include "progran.serviceTosca" .Values.progran | indent 4 }}
+  090-sdncontroller-service.yaml: |
+{{ include "sdncontroller.serviceTosca" .Values.sdncontroller | indent 4 }}
+  100-mcord-subscriber-service.yaml: |
+{{ include "mcord-subscriber.serviceTosca" (index .Values "mcord-subscriber") | indent 4 }}
+  110-epc-service.yaml: |
+{{ include "epc-service.serviceTosca" (index .Values "epc-service") | indent 4 }}
+  120-fabric-service.yaml: |
+{{ include "mcord.serviceGraphTosca" . | indent 4 }}
+  310-mcord-slices.yaml: |
+{{ include "mcord.sliceTosca" . | indent 4 }}
+  320-mcord-networks.yaml: |
+{{ include "mcord.networkTosca" . | indent 4 }}
diff --git a/xos-profiles/mcord/templates/tosca-job.yaml b/xos-profiles/mcord/templates/tosca-job.yaml
new file mode 100644
index 0000000..290bd5b
--- /dev/null
+++ b/xos-profiles/mcord/templates/tosca-job.yaml
@@ -0,0 +1,56 @@
+---
+
+# Copyright 2018-present Open Networking Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+apiVersion: batch/v1
+kind: Job
+metadata:
+  name: {{ template "mcord.fullname" . }}-tosca-loader
+  labels:
+    app: {{ template "mcord.name" . }}
+    chart: {{ template "mcord.chart" . }}
+    release: {{ .Release.Name }}
+    heritage: {{ .Release.Service }}
+spec:
+  template:
+    metadata:
+      labels:
+        app: {{ template "mcord.name" . }}
+        release: {{ .Release.Name }}
+      annotations:
+        checksum/config: {{ include (print $.Template.BasePath "/tosca-configmap.yaml") . | sha256sum }}
+    spec:
+      restartPolicy: OnFailure
+      containers:
+        - name: {{ .Chart.Name }}-tosca-loader
+          image: {{ .Values.httpieImage | quote }}
+          imagePullPolicy: {{ .Values.imagePullPolicy }}
+          command: ["/bin/sh"]
+          args:
+            - "-c"
+            - |
+              for recipe in /opt/tosca/*
+              do
+                echo $recipe
+                http --check-status --ignore-stdin POST http://xos-tosca:$XOS_TOSCA_SERVICE_PORT/run xos-username:{{ .Values.xosAdminUser }} xos-password:{{ .Values.xosAdminPassword }} @$recipe || exit 1
+                echo ''
+              done
+          volumeMounts:
+            - name: mcord-tosca
+              mountPath: /opt/tosca
+      volumes:
+        - name: mcord-tosca
+          configMap:
+            name: mcord-tosca
diff --git a/xos-profiles/mcord/values.yaml b/xos-profiles/mcord/values.yaml
new file mode 100644
index 0000000..62a0ab8
--- /dev/null
+++ b/xos-profiles/mcord/values.yaml
@@ -0,0 +1,38 @@
+---
+# Copyright 2018-present Open Networking Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Default values for the base-openstack profile.
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+
+replicaCount: 1
+
+nameOverride: ""
+fullnameOverride: ""
+
+imagePullPolicy: 'IfNotPresent'
+
+httpieImage: "clue/httpie:latest"
+
+xosAdminUser: &adminuser "admin@opencord.org"
+xosAdminPassword: &adminpass "letmein"
+
+cordSiteName:  &site "mysite"
+cordDeploymentName: &deployment "mydeployment"
+
+keystoneAdminUser: "admin"
+keystoneAdminPassword: "password"
+keystoneAdminTenant: "admin"
+keystoneDomain: "Default"