CORD-2509 migrate hss_db service from static to dynamic load
Change-Id: If24ebe6f793a05e5319f2ab40f757d6e507862c1
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/synchronizer/models/hssdb.xproto b/xos/synchronizer/models/hssdb.xproto
new file mode 100644
index 0000000..f6a4429
--- /dev/null
+++ b/xos/synchronizer/models/hssdb.xproto
@@ -0,0 +1,18 @@
+option name = "hssdb";
+option app_label = "hssdb";
+
+message HSSDBService (Service){
+ option verbose_name = "HSS Database Service";
+}
+
+message HSSDBVendor (XOSBase){
+ option verbose_name = "HSS Database Vendor";
+ required string name = 1 [help_text = "vendor name", max_length = 32, null = False, db_index = False, blank = False];
+ required manytoone image->Image:+ = 2 [help_text = "select image for this vendor", db_index = True, null = False, blank = False];
+ required manytoone flavor->Flavor:+ = 3 [help_text = "select openstack flavor for vendor image", db_index = True, null = False, blank = False];
+}
+
+message HSSDBServiceInstance (TenantWithContainer){
+ option verbose_name = "HSS Database ServiceInstance";
+ optional manytoone hssdb_vendor->HSSDBVendor:vendor_tenants = 1 [help_text = "select vendor of choice, leave blank for slice default", db_index = True, null = True, blank = True];
+}
\ No newline at end of file