Add vSM/vMM services for mcord

Change-Id: I2e063abbeb4e840704c339831dc95c781acc75a2
diff --git a/roles/cord-profile/templates/mcord-services.yaml.j2 b/roles/cord-profile/templates/mcord-services.yaml.j2
index ade708e..52d0830 100644
--- a/roles/cord-profile/templates/mcord-services.yaml.j2
+++ b/roles/cord-profile/templates/mcord-services.yaml.j2
@@ -9,6 +9,8 @@
    - custom_types/vsgw.yaml
    - custom_types/vhss.yaml
    - custom_types/vpgwc.yaml
+   - custom_types/vmm.yaml
+   - custom_types/vsm.yaml
 
 topology_template:
   node_templates:
@@ -137,6 +139,26 @@
       artifacts:
           pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
 
+    service#vmm:
+      type: tosca.nodes.VMMService
+      properties:
+          view_url: /admin/vmm/vmmservice/$id$/
+          kind: vEPC
+          public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
+          private_key_fn: /opt/xos/services/vmm/keys/mcord_rsa
+      artifacts:
+          pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
+
+    service#vsm:
+      type: tosca.nodes.VSMService
+      properties:
+          view_url: /admin/vsm/vsmservice/$id$/
+          kind: vEPC
+          public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
+          private_key_fn: /opt/xos/services/vsm/keys/mcord_rsa
+      artifacts:
+          pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
+
 # CORD Slices
     mysite_vBBU_slice:
       description: vBBU Service Slice
@@ -273,3 +295,53 @@
           - connection_to_wan_network:
               node: wan_network
               relationship: tosca.relationships.ConnectsToNetwork
+
+    mysite_vMM_slice:
+      description: vMM Service Slice
+      type: tosca.nodes.Slice
+      properties:
+          network: noauto
+      requirements:
+          - site:
+              node: mysite
+              relationship: tosca.relationships.MemberOfSite
+          - vPMM:
+              node: service#vmm
+              relationship: tosca.relationships.MemberOfService
+          - default_image:
+              node: trusty-server-multi-nic
+              relationship: tosca.relationships.DefaultImage
+          - default_flavor:
+              node: m1.small
+              relationship: tosca.relationships.DefaultFlavor
+          - connection_to_management:
+              node: management
+              relationship: tosca.relationships.ConnectsToNetwork
+          - connection_to_shared_network:
+              node: shared_network
+              relationship: tosca.relationships.ConnectsToNetwork
+
+    mysite_vSM_slice:
+      description: vSM Service Slice
+      type: tosca.nodes.Slice
+      properties:
+          network: noauto
+      requirements:
+          - site:
+              node: mysite
+              relationship: tosca.relationships.MemberOfSite
+          - vPMM:
+              node: service#vsm
+              relationship: tosca.relationships.MemberOfService
+          - default_image:
+              node: trusty-server-multi-nic
+              relationship: tosca.relationships.DefaultImage
+          - default_flavor:
+              node: m1.small
+              relationship: tosca.relationships.DefaultFlavor
+          - connection_to_management:
+              node: management
+              relationship: tosca.relationships.ConnectsToNetwork
+          - connection_to_shared_network:
+              node: shared_network
+              relationship: tosca.relationships.ConnectsToNetwork