blob: 7549c3f78573b77469a772b171f3cf337b89784d [file] [log] [blame]
Andy Bavier3ade4a52017-12-20 10:40:16 -07001{#
2Copyright 2017-present Open Networking Foundation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15#}
16
17# Only used by BASE-CORD
18
19tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: TOSCA for bootstrapping Address Manager service
22
23imports:
24 - custom_types/addressmanagerservice.yaml
25 - custom_types/addresspool.yaml
26
27topology_template:
28 node_templates:
29
30 addresses_vsg:
31 type: tosca.nodes.AddressPool
32 properties:
33 name: addresses_vsg
Zack Williams2da41af2018-01-10 17:48:23 -070034 addresses: {{ addresspool_vsg_cidr }}
35 gateway_ip: {{ addresspool_vsg_cidr | ipaddr('1') | ipaddr('address') }}
Zack Williamsec79bac2018-02-06 18:00:05 -070036 gateway_mac: {{ fabric_gateway_hwaddr }}
Andy Bavier3ade4a52017-12-20 10:40:16 -070037 requirements:
38 - service:
39 node: service#addressmanager
40 relationship: tosca.relationships.BelongsToOne
41
42 addresses_public:
43 type: tosca.nodes.AddressPool
44 properties:
45 name: addresses_public
Zack Williams2da41af2018-01-10 17:48:23 -070046 addresses: {{ addresspool_public_cidr }}
47 gateway_ip: {{ addresspool_public_cidr | ipaddr('1') | ipaddr('address') }}
Zack Williamsec79bac2018-02-06 18:00:05 -070048 gateway_mac: {{ fabric_gateway_hwaddr }}
Andy Bavier3ade4a52017-12-20 10:40:16 -070049 requirements:
50 - service:
51 node: service#addressmanager
52 relationship: tosca.relationships.BelongsToOne
53
54 service#addressmanager:
55 type: tosca.nodes.AddressManagerService
56 properties:
57 name: addressmanager