Andy Bavier | 37c853a | 2016-11-02 17:26:32 -0400 | [diff] [blame^] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Set up public network for CORD POD |
| 4 | imports: |
| 5 | - custom_types/xos.yaml |
| 6 | |
| 7 | topology_template: |
| 8 | node_templates: |
| 9 | |
| 10 | service#vrouter: |
| 11 | type: tosca.nodes.VRouterService |
| 12 | |
| 13 | public_template: |
| 14 | type: tosca.nodes.NetworkTemplate |
| 15 | properties: |
| 16 | visibility: private |
| 17 | translation: none |
| 18 | vtn_kind: PUBLIC |
| 19 | |
| 20 | public: |
| 21 | type: tosca.nodes.network.Network |
| 22 | properties: |
| 23 | ip_version: 4 |
| 24 | requirements: |
| 25 | - network_template: |
| 26 | node: public_template |
| 27 | relationship: tosca.relationships.UsesNetworkTemplate |
| 28 | - owner: |
| 29 | node: mysite_public |
| 30 | relationship: tosca.relationships.MemberOfSlice |
| 31 | - vrouter_tenant: |
| 32 | node: service#vrouter |
| 33 | relationship: tosca.relationships.TenantOfService |
| 34 | |
| 35 | mysite: |
| 36 | type: tosca.nodes.Site |
| 37 | |
| 38 | mysite_public: |
| 39 | description: This slice exists solely to own the public network |
| 40 | type: tosca.nodes.Slice |
| 41 | properties: |
| 42 | network: noauto |
| 43 | requirements: |
| 44 | - site: |
| 45 | node: mysite |
| 46 | relationship: tosca.relationships.MemberOfSite |