[CORD-1957] Scaffholding vENB service

Change-Id: Ic04a355bf0b44816aba084b54fc39fcbbb9de763
diff --git a/profile_manifests/mcord.yml b/profile_manifests/mcord.yml
index 4b9471d..6d0b0d7 100644
--- a/profile_manifests/mcord.yml
+++ b/profile_manifests/mcord.yml
@@ -51,6 +51,7 @@
   - sdn-controller-service.yaml
   - vspgwc-service.yaml
   - vspgwu-service.yaml
+  - mcord-service-graph.yml
 
 xos_other_templates:
   - fabric-network-cfg.json
@@ -91,6 +92,9 @@
   - name: exampleservice
     path: orchestration/xos_services/exampleservice
     keypair: exampleservice_rsa
+  - name: venb
+    path: orchestration/xos_services/venb
+    keypair: mcord_rsa
 
 profile_library: "mcord"
 
diff --git a/roles/cord-profile/templates/mcord-service-graph.yml.j2 b/roles/cord-profile/templates/mcord-service-graph.yml.j2
new file mode 100644
index 0000000..745b5ac
--- /dev/null
+++ b/roles/cord-profile/templates/mcord-service-graph.yml.j2
@@ -0,0 +1,83 @@
+# Copyright 2017-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.
+
+
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: Persist M-CORD Subscriber
+
+imports:
+   - custom_types/mcordsubscriberservice.yaml
+   - custom_types/venbservice.yaml
+   - custom_types/slice.yaml
+   - custom_types/site.yaml
+   - custom_types/image.yaml
+   - custom_types/servicedependency.yaml
+
+topology_template:
+  node_templates:
+
+    # Site
+    {{ site_humanname | lower }}:
+      type: tosca.nodes.Site
+      properties:
+        must-exist: true
+        name: {{ site_humanname | lower }}
+
+    # Images
+    image#vsg-1.1:
+      type: tosca.nodes.Image
+      properties:
+        must-exist: true
+        name: vsg-1.1
+
+    # M-CORD Subscriber Service
+    mcord:
+      type: tosca.nodes.MCordSubscriberService
+      properties:
+        name: mcord
+
+    # M-CORD vENB Service
+    service#vENB:
+      type: tosca.nodes.VENBService
+      properties:
+        name: vENB
+
+    slice#vENB_slice:
+      type: tosca.nodes.Slice
+      properties:
+        name: {{ site_name }}_vENB_slice
+      requirements:
+        - service:
+            node: service#vENB
+            relationship: tosca.relationships.BelongsToOne
+        - site:
+            node: {{ site_humanname | lower }}
+            relationship: tosca.relationships.BelongsToOne
+        - default_image:
+            node: image#vsg-1.1
+            relationship: tosca.relationships.BelongsToOne
+
+    # ServiceDependency M-CORD to vENB
+    mcord_venb:
+      type: tosca.nodes.ServiceDependency
+      properties:
+        connect_method: None
+      requirements:
+        - subscriber_service:
+            node: mcord
+            relationship: tosca.relationships.BelongsToOne
+        - provider_service:
+            node: service#vENB
+            relationship: tosca.relationships.BelongsToOne
diff --git a/roles/cord-profile/templates/mcord-subscriber.yml.j2 b/roles/cord-profile/templates/mcord-subscriber.yml.j2
deleted file mode 100644
index 06dd8e1..0000000
--- a/roles/cord-profile/templates/mcord-subscriber.yml.j2
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 2017-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.
-
-
-tosca_definitions_version: tosca_simple_yaml_1_0
-
-description: Persist M-CORD Subscriber
-
-imports:
-   - custom_types/mcordsubscriberservice.yaml
-
-topology_template:
-  node_templates:
-
-    # M-CORD Subscriber
-    mcord:
-      type: tosca.nodes.MCordSubscriberService
-      properties:
-        name: mcord
\ No newline at end of file