Onboarding slicing service
Change-Id: I049a96943108832e2b0bd8fb23389e9db51c2b13
diff --git a/mcord/Makefile b/mcord/Makefile
index 7361750..baef92d 100644
--- a/mcord/Makefile
+++ b/mcord/Makefile
@@ -202,3 +202,14 @@
local_containers: prereqs download_xos
make -f ../common/Makefile.containers update_certs xos_base xos_devel synchronizer onboarding_synchronizer
+onboard-mcord-slicing: slicing-ui
+ @echo "[ONBOARDING UI SERVICES]"
+ bash ../common/wait_for_onboarding_ready.sh $(XOS_UI_PORT) xos
+ $(RUN_TOSCA_BOOTSTRAP) ../common/disable-onboarding.yaml
+ $(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/mcord-ui-slicing/xos/mcord-slicing-onboard.yaml
+ $(RUN_TOSCA_BOOTSTRAP) ../common/enable-onboarding.yaml
+ bash ../common/wait_for_onboarding_ready.sh $(XOS_UI_PORT) xos
+ bash ../common/wait_for_xos_port.sh $(XOS_UI_PORT)
+
+slicing-ui:
+ $(RUN_TOSCA) ./mcord-slicing-ui.yaml
\ No newline at end of file
diff --git a/mcord/mcord-slicing-ui.yaml b/mcord/mcord-slicing-ui.yaml
new file mode 100644
index 0000000..776e370
--- /dev/null
+++ b/mcord/mcord-slicing-ui.yaml
@@ -0,0 +1,26 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: >
+ * Some sample data to populate the demo frontend
+
+imports:
+ - custom_types/xos.yaml
+
+topology_template:
+ node_templates:
+ # You can use this recipe to load the dashboard in the system:
+ Mcord-slicing:
+ type: tosca.nodes.DashboardView
+ properties:
+ url: template:xosMcord-slicing
+
+ # And this recipe to activate the dashboard for a user:
+ padmin@vicci.org:
+ type: tosca.nodes.User
+ properties:
+ no-create: true
+ no-delete: true
+ requirements:
+ - mcord-slicing_dashboard:
+ node: Mcord-slicing
+ relationship: tosca.relationships.UsesDashboard
\ No newline at end of file