Added xos-ecord-config to style accordingly
Change-Id: I487e818a00fe64ebae6b9476fdb6d71459cd0827
diff --git a/metronetwork/Makefile b/metronetwork/Makefile
index 312604f..c3b1698 100644
--- a/metronetwork/Makefile
+++ b/metronetwork/Makefile
@@ -13,7 +13,7 @@
RUN_TOSCA_BOOTSTRAP=python ../common/run_tosca.py $(XOS_BOOTSTRAP_PORT) $(ADMIN_USERNAME) $(ADMIN_PASSWORD)
RUN_TOSCA=python ../common/run_tosca.py $(XOS_UI_PORT) $(ADMIN_USERNAME) $(ADMIN_PASSWORD)
-metronetwork: prereqs dirs download_xos download_services bootstrap onboarding
+metronetwork: prereqs dirs download_xos download_services bootstrap onboarding services
prereqs:
sudo make -f ../common/Makefile.prereqs
@@ -56,6 +56,9 @@
bash ../common/wait_for_onboarding_ready.sh $(XOS_BOOTSTRAP_PORT) xos
bash ../common/wait_for_xos_port.sh $(XOS_UI_PORT)
+services:
+ $(RUN_TOSCA) ecord-services.yaml
+
containers: prereqs download_xos
make -f ../common/Makefile.containers xos_devel synchronizer onboarding_synchronizer
diff --git a/metronetwork/ecord-services.yaml b/metronetwork/ecord-services.yaml
new file mode 100644
index 0000000..68af63a
--- /dev/null
+++ b/metronetwork/ecord-services.yaml
@@ -0,0 +1,16 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: >
+ * E-CORD Services
+imports:
+ - custom_types/xos.yaml
+ - custom_types/metronet.yaml
+
+topology_template:
+ node_templates:
+
+ service#metronetwork:
+ type: tosca.nodes.MetroNetworkService
+ properties:
+ view_url: /admin/metronetwork/metronetworkservice/$id$/
+ kind: metronetwork
\ No newline at end of file
diff --git a/metronetwork/xos.yaml b/metronetwork/xos.yaml
index 7ad92f1..cdf38d0 100644
--- a/metronetwork/xos.yaml
+++ b/metronetwork/xos.yaml
@@ -24,3 +24,13 @@
- xos:
node: xos
relationship: tosca.relationships.UsedByXOS
+
+ /opt/xos/xos_configuration/xos_ecord_config:
+ type: tosca.nodes.XOSVolume
+ properties:
+ host_path: { path_join: [ SELF, CONFIG_DIR, ./xos_ecord_config, ENV_VAR ] }
+ read_only: true
+ requirements:
+ - xos:
+ node: xos
+ relationship: tosca.relationships.UsedByXOS
diff --git a/metronetwork/xos_ecord_config b/metronetwork/xos_ecord_config
new file mode 100644
index 0000000..fb659ba
--- /dev/null
+++ b/metronetwork/xos_ecord_config
@@ -0,0 +1,5 @@
+[gui]
+branding_name=CORD
+branding_icon=/static/cord-logo.png
+branding_favicon=/static/cord-favicon.png
+branding_bg=/static/cord-bg.jpg