Merge "Added fe config mock for mcord slicing ui"
diff --git a/frontend/Makefile b/frontend/Makefile
index b0f02c8..ed34f2f 100644
--- a/frontend/Makefile
+++ b/frontend/Makefile
@@ -155,3 +155,16 @@
dashboard:
$(RUN_TOSCA) ./dashboard.yaml
+# before executing this clone the service from: https://github.com/teone/mcord-slicing-ui.git
+onboard-mcord-slicing: slicing-ui
+ # fix ports (now they are set to use the FE config ones
+ @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) ./mocks/mcord-slicing-ui.yaml
diff --git a/frontend/mocks/mcord-slicing-ui.yaml b/frontend/mocks/mcord-slicing-ui.yaml
new file mode 100644
index 0000000..776e370
--- /dev/null
+++ b/frontend/mocks/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