Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Set up management network for CORD POD |
| 4 | imports: |
| 5 | - custom_types/xos.yaml |
| 6 | |
| 7 | topology_template: |
| 8 | node_templates: |
| 9 | |
| 10 | management_template: |
| 11 | type: tosca.nodes.NetworkTemplate |
| 12 | properties: |
| 13 | visibility: private |
| 14 | translation: none |
Scott Baker | 09d8936 | 2016-08-29 17:08:27 -0700 | [diff] [blame] | 15 | vtn_kind: MANAGEMENT_LOCAL |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 16 | |
| 17 | management: |
| 18 | type: tosca.nodes.network.Network |
| 19 | properties: |
| 20 | ip_version: 4 |
| 21 | cidr: 172.27.0.0/24 |
| 22 | requirements: |
| 23 | - network_template: |
| 24 | node: management_template |
| 25 | relationship: tosca.relationships.UsesNetworkTemplate |
| 26 | - owner: |
| 27 | node: mysite_management |
| 28 | relationship: tosca.relationships.MemberOfSlice |
| 29 | |
Scott Baker | b08cd8d | 2016-10-12 09:56:34 -0700 | [diff] [blame] | 30 | management_hosts_template: |
| 31 | type: tosca.nodes.NetworkTemplate |
| 32 | properties: |
| 33 | visibility: private |
| 34 | translation: none |
| 35 | vtn_kind: MANAGEMENT_HOST |
| 36 | |
Scott Baker | 53f0135 | 2016-10-19 10:05:56 -0700 | [diff] [blame] | 37 | # management_hosts: |
| 38 | # type: tosca.nodes.network.Network |
| 39 | # properties: |
| 40 | # ip_version: 4 |
| 41 | # cidr: 10.1.0.0/24 |
| 42 | # start_ip: 10.1.0.128 |
| 43 | # end_ip: 10.1.0.254 |
| 44 | # requirements: |
| 45 | # - network_template: |
| 46 | # node: management_hosts_template |
| 47 | # relationship: tosca.relationships.UsesNetworkTemplate |
| 48 | # - owner: |
| 49 | # node: mysite_management |
| 50 | # relationship: tosca.relationships.MemberOfSlice |
Scott Baker | b08cd8d | 2016-10-12 09:56:34 -0700 | [diff] [blame] | 51 | |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 52 | mysite: |
| 53 | type: tosca.nodes.Site |
| 54 | |
| 55 | mysite_management: |
| 56 | description: This slice exists solely to own the management network |
| 57 | type: tosca.nodes.Slice |
| 58 | properties: |
| 59 | network: noauto |
| 60 | requirements: |
| 61 | - site: |
| 62 | node: mysite |
| 63 | relationship: tosca.relationships.MemberOfSite |
Scott Baker | 09d8936 | 2016-08-29 17:08:27 -0700 | [diff] [blame] | 64 | |