CORD-2509 migrate epc-service from static to dynamic load
Change-Id: I05997055a13f6aba121b4564ec5dff0a583922b9
diff --git a/xos/vepc.xproto b/xos/synchronizer/models/vepc.xproto
similarity index 100%
rename from xos/vepc.xproto
rename to xos/synchronizer/models/vepc.xproto
diff --git a/xos/synchronizer/vepc_config.yaml b/xos/synchronizer/vepc_config.yaml
index b9d74ac..c4851ee 100644
--- a/xos/synchronizer/vepc_config.yaml
+++ b/xos/synchronizer/vepc_config.yaml
@@ -1,7 +1,10 @@
-name: vepc-synchronizer
+name: vepc
accessor:
username: xosadmin@opencord.org
password: "@/opt/xos/services/vepc/credentials/xosadmin@opencord.org"
+required_models:
+ - VEPCService
+ - VEPCServiceInstance
blueprints:
- name: build
networks:
@@ -194,3 +197,4 @@
#steps_dir: "/opt/xos/synchronizers/epc-service/steps"
sys_dir: "/opt/xos/synchronizers/epc-service/sys"
model_policies_dir: "/opt/xos/synchronizers/epc-service/model_policies"
+models_dir: "/opt/xos/synchronizers/epc-service/models"
\ No newline at end of file
diff --git a/xos/vepc-onboard.yaml b/xos/vepc-onboard.yaml
deleted file mode 100644
index 2f377c6..0000000
--- a/xos/vepc-onboard.yaml
+++ /dev/null
@@ -1,35 +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 EPC service
-
-imports:
- - custom_types/xos.yaml
-
-topology_template:
- node_templates:
- servicecontroller#vepc:
- type: tosca.nodes.ServiceController
- properties:
- base_url: file:///opt/xos_services/epc-service/xos/
- # The following will concatenate with base_url automatically, if
- # base_url is non-null.
- xproto: ./
- synchronizer: synchronizer/manifest
- synchronizer_run: vepc-synchronizer.py
- private_key: file:///opt/xos/key_import/mcord_rsa
- public_key: file:///opt/xos/key_import/mcord_rsa.pub
-