CORD-2509 migrate hss_db service from static to dynamic load

Change-Id: If24ebe6f793a05e5319f2ab40f757d6e507862c1
diff --git a/xos/hssdb-onboard.yaml b/xos/hssdb-onboard.yaml
deleted file mode 100644
index 4f50131..0000000
--- a/xos/hssdb-onboard.yaml
+++ /dev/null
@@ -1,34 +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: Onboard the HSS DB
-
-imports:
-   - custom_types/xos.yaml
-
-topology_template:
-  node_templates:
-    servicecontroller#hssdb:
-      type: tosca.nodes.ServiceController
-      properties:
-          base_url: file:///opt/xos_services/hss_db/xos/
-          # The following will concatenate with base_url automatically, if
-          # base_url is non-null.
-          xproto: ./
-          synchronizer: synchronizer/manifest
-          synchronizer_run: hssdb-synchronizer.py
-          private_key: file:///opt/xos/key_import/mcord_rsa
-          public_key: file:///opt/xos/key_import/mcord_rsa.pub
\ No newline at end of file
diff --git a/xos/make_synchronizer_manifest.sh b/xos/make_synchronizer_manifest.sh
deleted file mode 100644
index 6e04ec2..0000000
--- a/xos/make_synchronizer_manifest.sh
+++ /dev/null
@@ -1,16 +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.
-
-#! /bin/bash
-find synchronizer -type f | cut -b 14- > synchronizer/manifest
\ No newline at end of file
diff --git a/xos/synchronizer/hssdb_config.yaml b/xos/synchronizer/hssdb_config.yaml
index a672282..705d41d 100644
--- a/xos/synchronizer/hssdb_config.yaml
+++ b/xos/synchronizer/hssdb_config.yaml
@@ -12,11 +12,16 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-name: hssdb-synchronizer
+name: hssdb
 accessor:
   username: xosadmin@opencord.org
   password: "@/opt/xos/services/hssdb/credentials/xosadmin@opencord.org"
+required_models:
+  - HSSDBService
+  - HSSDBVendor
+  - HSSDBServiceInstance
 dependency_graph: "/opt/xos/synchronizers/hssdb/model-deps"
 steps_dir: "/opt/xos/synchronizers/hssdb/steps"
 sys_dir: "/opt/xos/synchronizers/hssdb/sys"
+models_dir: "/opt/xos/synchronizers/hssdb/models"
 model_policies_dir: "/opt/xos/synchronizers/hssdb/model_policies"
diff --git a/xos/hssdb.xproto b/xos/synchronizer/models/hssdb.xproto
similarity index 100%
rename from xos/hssdb.xproto
rename to xos/synchronizer/models/hssdb.xproto