Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 1 | {# |
| 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 | #} |
| 16 | |
| 17 | # Only used by BASE-CORD |
| 18 | |
| 19 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 20 | |
| 21 | description: TOSCA for bootstrapping Address Manager service |
| 22 | |
| 23 | imports: |
| 24 | - custom_types/addressmanagerservice.yaml |
| 25 | - custom_types/addresspool.yaml |
| 26 | |
| 27 | topology_template: |
| 28 | node_templates: |
| 29 | |
| 30 | addresses_vsg: |
| 31 | type: tosca.nodes.AddressPool |
| 32 | properties: |
| 33 | name: addresses_vsg |
Zack Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 34 | addresses: {{ addresspool_vsg_cidr }} |
| 35 | gateway_ip: {{ addresspool_vsg_cidr | ipaddr('1') | ipaddr('address') }} |
Zack Williams | ec79bac | 2018-02-06 18:00:05 -0700 | [diff] [blame] | 36 | gateway_mac: {{ fabric_gateway_hwaddr }} |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 37 | 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 Williams | 2da41af | 2018-01-10 17:48:23 -0700 | [diff] [blame] | 46 | addresses: {{ addresspool_public_cidr }} |
| 47 | gateway_ip: {{ addresspool_public_cidr | ipaddr('1') | ipaddr('address') }} |
Zack Williams | ec79bac | 2018-02-06 18:00:05 -0700 | [diff] [blame] | 48 | gateway_mac: {{ fabric_gateway_hwaddr }} |
Andy Bavier | 3ade4a5 | 2017-12-20 10:40:16 -0700 | [diff] [blame] | 49 | 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 |