CORD-2509 migrate venb service from static to dynamic load
Change-Id: Ic764a8582ec8c7edd372c2c40cfb673f5d9dec37
diff --git a/xos/make_synchronizer_manifest.sh b/xos/make_synchronizer_manifest.sh
deleted file mode 100644
index 6c0b640..0000000
--- a/xos/make_synchronizer_manifest.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#! /bin/bash
-
-# 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.
-
-find synchronizer -type f | cut -b 14- > synchronizer/manifest
\ No newline at end of file
diff --git a/xos/models/venb.xproto b/xos/synchronizer/models/venb.xproto
similarity index 100%
rename from xos/models/venb.xproto
rename to xos/synchronizer/models/venb.xproto
diff --git a/xos/synchronizer/venb_config.yaml b/xos/synchronizer/venb_config.yaml
index 54d943e..bb7251b 100644
--- a/xos/synchronizer/venb_config.yaml
+++ b/xos/synchronizer/venb_config.yaml
@@ -14,11 +14,15 @@
# limitations under the License.
-name: venb-synchronizer
+name: venb
accessor:
username: xosadmin@opencord.org
password: "@/opt/xos/services/venb/credentials/xosadmin@opencord.org"
+required_models:
+ - VENBService
+ - VENBServiceInstance
dependency_graph: "/opt/xos/synchronizers/venb/model-deps"
steps_dir: "/opt/xos/synchronizers/venb/steps"
sys_dir: "/opt/xos/synchronizers/venb/sys"
-model_policies_dir: "/opt/xos/synchronizers/venb/model_policies"
\ No newline at end of file
+model_policies_dir: "/opt/xos/synchronizers/venb/model_policies"
+models_dir: "/opt/xos/synchronizers/venb/models"
\ No newline at end of file
diff --git a/xos/venb-onboard.yaml b/xos/venb-onboard.yaml
deleted file mode 100644
index cb694fb..0000000
--- a/xos/venb-onboard.yaml
+++ /dev/null
@@ -1,36 +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 Virtual eNodeB service
-
-imports:
- - custom_types/xos.yaml
-
-topology_template:
- node_templates:
- servicecontroller#venb:
- type: tosca.nodes.ServiceController
- properties:
- base_url: file:///opt/cord/orchestration/xos_services/venb/xos/
- # The following will concatenate with base_url automatically, if
- # base_url is non-null.
- xproto: models/
- synchronizer: synchronizer/manifest
- synchronizer_run: venb-synchronizer.py
- private_key: file:///opt/xos/key_import/mcord_rsa
- public_key: file:///opt/xos/key_import/mcord_rsa.pub