blob: 256f5d9a87f7d4d9c34f713d303d022235cf1d31 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
Zack Williamsa2763112017-01-03 11:38:38 -070019tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: Created by platform-install/roles/cord-profile/templates/services.yaml.j2
22
23imports:
24 - custom_types/xos.yaml
Scott Baker3a5dea72017-03-06 23:01:01 -080025 - custom_types/vtr.yaml
Zack Williamsa2763112017-01-03 11:38:38 -070026
27topology_template:
28 node_templates:
29
30 # CORD Services
31 service#vtr:
Scott Baker3a5dea72017-03-06 23:01:01 -080032 type: tosca.nodes.VTRService
Zack Williamsa2763112017-01-03 11:38:38 -070033 properties:
34 view_url: /admin/vtr/vtrservice/$id$/
35 kind: vTR
36 replaces: service_vtr
37
38 service#volt:
39 type: tosca.nodes.VOLTService
40 requirements:
41 - vsg_tenant:
42 node: service#vsg
43 relationship: tosca.relationships.TenantOfService
44 properties:
45 view_url: /admin/cord/voltservice/$id$/
46 kind: vOLT
47 replaces: service_volt
48
49 addresses_vsg:
50 type: tosca.nodes.AddressPool
51 properties:
52 addresses: 10.168.0.0/24
53 gateway_ip: 10.168.0.1
54 gateway_mac: 02:42:0a:a8:00:01
55
56 addresses_exampleservice-public:
57 type: tosca.nodes.AddressPool
58 properties:
59 addresses: 10.168.1.0/24
60 gateway_ip: 10.168.1.1
61 gateway_mac: 02:42:0a:a8:00:01
62
63 service#vsg:
64 type: tosca.nodes.VSGService
65 requirements:
66 - vrouter_tenant:
67 node: service#vrouter
68 relationship: tosca.relationships.TenantOfService
69 properties:
70 view_url: /admin/cord/vsgservice/$id$/
71 private_key_fn: /opt/xos/synchronizers/vcpe/vcpe_private_key
72 replaces: service_vsg
73
74 service#vrouter:
75 type: tosca.nodes.VRouterService
76 properties:
77 view_url: /admin/vrouter/vrouterservice/$id$/
78 replaces: service_vrouter
79 requirements:
80 - addresses_vsg:
81 node: addresses_vsg
82 relationship: tosca.relationships.ProvidesAddresses
83 - addresses_service1:
84 node: addresses_exampleservice-public
85 relationship: tosca.relationships.ProvidesAddresses
86