CORD-2509 migrate vhss service from static to dynamic load
Change-Id: I07559484ec184ae454469d32aff2fd07162d96b4
diff --git a/xos/synchronizer/models/vhss.xproto b/xos/synchronizer/models/vhss.xproto
new file mode 100644
index 0000000..8cf4a70
--- /dev/null
+++ b/xos/synchronizer/models/vhss.xproto
@@ -0,0 +1,20 @@
+option name = "vhss";
+option app_label = "vhss";
+option kind = "vEPC";
+
+message VHSSService (Service){
+ option verbose_name = "Virtual Home Subscriber Server Service";
+}
+
+message VHSSVendor (XOSBase){
+ option verbose_name = "Virtual Home Subscriber Server 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 VHSSTenant (TenantWithContainer){
+ option verbose_name = "Virtual Home Subscriber Server Tenant";
+ optional manytoone vhss_vendor->VHSSVendor:vendor_tenants = 1 [help_text = "select vendor of choice, leave blank for slice default", db_index = True, null = True, blank = True];
+}
+
diff --git a/xos/synchronizer/vhss_config.yaml b/xos/synchronizer/vhss_config.yaml
index 0123b0d..6d8c10e 100644
--- a/xos/synchronizer/vhss_config.yaml
+++ b/xos/synchronizer/vhss_config.yaml
@@ -13,11 +13,16 @@
# limitations under the License.
-name: vhss-synchronizer
+name: vhss
accessor:
username: xosadmin@opencord.org
password: "@/opt/xos/services/vhss/credentials/xosadmin@opencord.org"
+required_models:
+ - VHSSService
+ - VHSSVendor
+ - VHSSTenant
dependency_graph: "/opt/xos/synchronizers/vhss/model-deps"
steps_dir: "/opt/xos/synchronizers/vhss/steps"
sys_dir: "/opt/xos/synchronizers/vhss/sys"
+models_dir: "/opt/xos/synchronizers/vhss/models"
model_policies_dir: "/opt/xos/synchronizers/vhss/model_policies"
diff --git a/xos/synchronizer/vhss_from_api_config b/xos/synchronizer/vhss_from_api_config
deleted file mode 100644
index b8a05cc..0000000
--- a/xos/synchronizer/vhss_from_api_config
+++ /dev/null
@@ -1,21 +0,0 @@
-# Sets options for the synchronizer
-[observer]
-name=vhss
-dependency_graph=/opt/xos/synchronizers/vhss/model-deps
-steps_dir=/opt/xos/synchronizers/vhss/steps
-sys_dir=/opt/xos/synchronizers/vhss/sys
-#logfile=/var/log/xos_backend.log
-log_file=console
-log_level=debug
-pretend=False
-backoff_disabled=True
-save_ansible_output=True
-proxy_ssh=True
-proxy_ssh_key=/opt/cord_profile/node_key
-proxy_ssh_user=root
-enable_watchers=True
-accessor_kind=api
-accessor_password=@/opt/xos/services/vhss/credentials/xosadmin@opencord.org
-#required_models=VHSSService, VHSSTenant, ServiceDependency
-[networking]
-use_vtn=True