blob: faaa9368acbc1d5d1a9ecefdaf127d2e2f25001d [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
Scott Baker7f95bc32017-08-21 09:40:10 -070026 - custom_types/addressmanager.yaml
Zack Williamsa2763112017-01-03 11:38:38 -070027
28topology_template:
29 node_templates:
30
31 # CORD Services
32 service#vtr:
Scott Baker3a5dea72017-03-06 23:01:01 -080033 type: tosca.nodes.VTRService
Zack Williamsa2763112017-01-03 11:38:38 -070034 properties:
35 view_url: /admin/vtr/vtrservice/$id$/
36 kind: vTR
37 replaces: service_vtr
38
39 service#volt:
40 type: tosca.nodes.VOLTService
41 requirements:
42 - vsg_tenant:
43 node: service#vsg
44 relationship: tosca.relationships.TenantOfService
45 properties:
46 view_url: /admin/cord/voltservice/$id$/
47 kind: vOLT
48 replaces: service_volt
49
50 addresses_vsg:
51 type: tosca.nodes.AddressPool
52 properties:
53 addresses: 10.168.0.0/24
54 gateway_ip: 10.168.0.1
55 gateway_mac: 02:42:0a:a8:00:01
56
57 addresses_exampleservice-public:
58 type: tosca.nodes.AddressPool
59 properties:
60 addresses: 10.168.1.0/24
61 gateway_ip: 10.168.1.1
62 gateway_mac: 02:42:0a:a8:00:01
63
64 service#vsg:
65 type: tosca.nodes.VSGService
66 requirements:
67 - vrouter_tenant:
68 node: service#vrouter
69 relationship: tosca.relationships.TenantOfService
70 properties:
71 view_url: /admin/cord/vsgservice/$id$/
72 private_key_fn: /opt/xos/synchronizers/vcpe/vcpe_private_key
73 replaces: service_vsg
74
75 service#vrouter:
76 type: tosca.nodes.VRouterService
77 properties:
78 view_url: /admin/vrouter/vrouterservice/$id$/
79 replaces: service_vrouter
Scott Baker7f95bc32017-08-21 09:40:10 -070080
81 service#addressmanager:
82 type: tosca.nodes.AddressManagerService
Zack Williamsa2763112017-01-03 11:38:38 -070083 requirements:
84 - addresses_vsg:
85 node: addresses_vsg
86 relationship: tosca.relationships.ProvidesAddresses
87 - addresses_service1:
88 node: addresses_exampleservice-public
89 relationship: tosca.relationships.ProvidesAddresses