Mounting UI config file
Change-Id: Ib5ceb89ffdd7b37afe7d5d72031ed440974dd3ab
diff --git a/metronetwork/ui-style-config.js b/metronetwork/ui-style-config.js
new file mode 100644
index 0000000..5501619
--- /dev/null
+++ b/metronetwork/ui-style-config.js
@@ -0,0 +1,22 @@
+angular.module('app')
+ .constant('StyleConfig', {
+ projectName: 'E-CORD',
+ favicon: 'cord-favicon.png',
+ background: 'cord-bg.jpg',
+ payoff: 'Enterprise on demand',
+ logo: 'cord-logo.png',
+ routes: [
+ {
+ label: 'Slices',
+ state: 'xos.core.slices'
+ },
+ {
+ label: 'Instances',
+ state: 'xos.core.instances'
+ },
+ {
+ label: 'Nodes',
+ state: 'xos.core.nodes'
+ }
+ ]
+});
diff --git a/metronetwork/xos-gui.yaml b/metronetwork/xos-gui.yaml
index 457e946..ac50a71 100644
--- a/metronetwork/xos-gui.yaml
+++ b/metronetwork/xos-gui.yaml
@@ -16,6 +16,17 @@
name: xos-spa-gui
image: xosproject/xos-gui
ports: 4000:4000
+
+ # UI Style Config
+ /var/www/dist/style.config.js:
+ type: tosca.nodes.ComponentVolume
+ properties:
+ host_path: { path_join: [ SELF, CONFIG_DIR, ./ui-style-config.js, ENV_VAR ] }
+ read_only: false
+ requirements:
+ - xos:
+ node: xos-spa-gui
+ relationship: tosca.relationships.VolumeOfComponent
gui-to-gw:
type: tosca.nodes.ComponentLink