fix cord branding for frontend mock-cord-pod
Change-Id: Ia290139759a5267946fd91e1259e0c689ba3ed2a
diff --git a/frontend/Makefile b/frontend/Makefile
index a6cd9b8..9ad3fc1 100644
--- a/frontend/Makefile
+++ b/frontend/Makefile
@@ -79,8 +79,6 @@
$(RUN_TOSCA) ../cord-pod/mgmt-net.yaml
$(RUN_TOSCA) ../cord-pod/cord-vtn-vsg.yaml
$(RUN_TOSCA) ../cord-pod/cord-volt-devices.yaml
- sudo docker exec frontend_xos_ui_1 cp /opt/xos/configurations/cord-pod/xos_cord_config /opt/xos/xos_configuration/
- sudo docker exec frontend_xos_ui_1 touch /opt/xos/xos/settings.py
onboard-cord-pod:
sudo bash -c "echo somekey > key_import/vsg_rsa"
@@ -90,6 +88,7 @@
$(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vrouter/xos/vrouter-onboard.yaml
$(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/olt/xos/volt-onboard.yaml
$(RUN_TOSCA_BOOTSTRAP) $(SERVICE_DIR)/vsg/xos/vsg-onboard.yaml
+ $(RUN_TOSCA_BOOTSTRAP) xos-cord-branding.yaml
bash ../common/wait_for_onboarding_ready.sh 9998 services/vrouter
bash ../common/wait_for_onboarding_ready.sh 9998 services/volt
bash ../common/wait_for_onboarding_ready.sh 9998 services/vsg
diff --git a/frontend/xos-cord-branding.yaml b/frontend/xos-cord-branding.yaml
new file mode 100644
index 0000000..6761f7e
--- /dev/null
+++ b/frontend/xos-cord-branding.yaml
@@ -0,0 +1,25 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: Adds volume to make the cord branding config file available
+
+imports:
+ - custom_types/xos.yaml
+
+topology_template:
+ node_templates:
+ xos:
+ type: tosca.nodes.XOS
+ properties:
+ no-create: True
+ no-delete: True
+ no-update: True
+
+ /opt/xos/xos_configuration/xos_cord_config:
+ type: tosca.nodes.XOSVolume
+ properties:
+ host_path: { path_join: [ SELF, CONFIG_DIR, ../cord-pod/xos_cord_config, ENV_VAR ] }
+ read_only: false
+ requirements:
+ - xos:
+ node: xos
+ relationship: tosca.relationships.UsedByXOS