[CORD-2517] add hss_db service in scenario

Change-Id: Icd7390a88b81b7948bbded3603a16584b8616376
diff --git a/mcord-cavium.yml b/mcord-cavium.yml
index fdd6bb0..6bb40ca 100644
--- a/mcord-cavium.yml
+++ b/mcord-cavium.yml
@@ -49,7 +49,7 @@
 
 enabled_gui_extensions: []
 
-# paths defined in manifest/default.xml, eNB is temporally removed
+# paths defined in manifest/default.xml
 xos_services:
   - name: vtn
     path: orchestration/xos_services/vtn-service
@@ -75,6 +75,9 @@
   - name: vhss
     path: orchestration/xos_services/vhss
     keypair: mcord_rsa
+  - name: hssdb
+    path: orchestration/xos_services/hss_db
+    keypair: mcord_rsa
   - name: sdncontroller
     path: orchestration/xos_services/sdn-controller
     keypair: mcord_rsa
diff --git a/templates/mcord-cavium-services.yml.j2 b/templates/mcord-cavium-services.yml.j2
index b031ab8..2fc72c4 100644
--- a/templates/mcord-cavium-services.yml.j2
+++ b/templates/mcord-cavium-services.yml.j2
@@ -38,6 +38,8 @@
    - custom_types/vmmevendor.yaml
    - custom_types/vhssservice.yaml
    - custom_types/vhssvendor.yaml
+   - custom_types/hssdbservice.yaml
+   - custom_types/hssdbvendor.yaml
    - custom_types/sdncontrollerservice.yaml
    - custom_types/sdncontrollervendor.yaml
    - custom_types/vepcservice.yaml
@@ -314,6 +316,49 @@
             node: m1.small
             relationship: tosca.relationships.BelongsToOne
 
+# HSS_DB service
+    service#hssdb:
+      type: tosca.nodes.HSSDBService
+      properties:
+          name: hssdb
+          public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
+          private_key_fn: /opt/xos/services/hssdb/keys/mcord_rsa
+      artifacts:
+          pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
+
+    {{ site_name }}_hssdb:
+      description: HSS-DB Service Slice
+      type: tosca.nodes.Slice
+      properties:
+          name: {{ site_name }}_hssdb
+          default_isolation: vm
+          network: noauto
+      requirements:
+          - site:
+              node: mysite
+              relationship: tosca.relationships.BelongsToOne
+          - service:
+              node: service#hssdb
+              relationship: tosca.relationships.BelongsToOne
+          - default_image:
+              node: image-test
+              relationship: tosca.relationships.BelongsToOne
+          - default_flavor:
+              node: m1.small
+              relationship: tosca.relationships.BelongsToOne
+
+    sprint_hssdb:
+      type: tosca.nodes.HSSDBVendor
+      properties:
+        name: sprint_hssdb
+      requirements:
+        - image:
+            node: image-test
+            relationship: tosca.relationships.BelongsToOne
+        - flavor:
+            node: m1.small
+            relationship: tosca.relationships.BelongsToOne
+
 #SDN Controller Service
     service#sdncontroller:
       type: tosca.nodes.SDNControllerService
@@ -416,6 +461,18 @@
             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
+
 # M-CORD Subscriber
     service#mcord:
       type: tosca.nodes.MCordSubscriberService