blob: ff735e0d7161fb891493387eaccbaa5d8a8170cf [file] [log] [blame]
Matteo Scandolo920e8fd2017-08-08 13:05:24 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
Matteo Scandoloc4680752018-05-17 12:16:30 -070016# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @test.yaml http://192.168.99.100:30007/run
Matteo Scandolo9ce18252017-06-22 10:48:25 -070017tosca_definitions_version: tosca_simple_yaml_1_0
18
19description: Persist xos-sample-gui-extension
20
21imports:
22 - custom_types/user.yaml
Matteo Scandolo485b7132017-06-30 11:46:47 -070023 - custom_types/site.yaml
Matteo Scandolo9ce18252017-06-22 10:48:25 -070024 - custom_types/xosguiextension.yaml
25
26topology_template:
27 node_templates:
28
29 # UI Extension
30 test:
31 type: tosca.nodes.XOSGuiExtension
32 properties:
33 name: test
34 files: /spa/extensions/test/vendor.js, /spa/extensions/test/app.js
35
Matteo Scandolo485b7132017-06-30 11:46:47 -070036 # Site
Matteo Scandolo8bbb03a2017-07-05 14:03:33 -070037 site_onlab:
Matteo Scandolo485b7132017-06-30 11:46:47 -070038 type: tosca.nodes.Site
39 properties:
40 name: Open Networking Lab
41 site_url: http://onlab.us/
42 hosts_nodes: True
43
44 # User
Matteo Scandolo8bbb03a2017-07-05 14:03:33 -070045 user_test:
Matteo Scandolo9ce18252017-06-22 10:48:25 -070046 type: tosca.nodes.User
47 properties:
Matteo Scandolo8bbb03a2017-07-05 14:03:33 -070048 username: test@opencord.org
49 email: test@opencord.org
Matteo Scandolo485b7132017-06-30 11:46:47 -070050 password: mypwd
51 firstname: User
52 lastname: Test
53 is_admin: True
54 requirements:
55 - site:
Matteo Scandolo8bbb03a2017-07-05 14:03:33 -070056 node: site_onlab
Matteo Scandolo485b7132017-06-30 11:46:47 -070057 relationship: tosca.relationships.BelongsToOne