Andy Bavier | 6e1602e | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Just enough Tosca to get the vSG slice running on the CORD POD |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | |
| 8 | topology_template: |
| 9 | node_templates: |
| 10 | # CORD Services |
Scott Baker | 0f58999 | 2016-03-07 20:32:29 -0800 | [diff] [blame] | 11 | service_vtr: |
| 12 | type: tosca.nodes.Service |
| 13 | properties: |
| 14 | view_url: /admin/vtr/vtrservice/$id$/ |
| 15 | kind: vTR |
| 16 | |
Andy Bavier | 6e1602e | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 17 | service_volt: |
| 18 | type: tosca.nodes.Service |
| 19 | requirements: |
| 20 | - vsg_tenant: |
| 21 | node: service_vsg |
| 22 | relationship: tosca.relationships.TenantOfService |
| 23 | properties: |
| 24 | view_url: /admin/cord/voltservice/$id$/ |
| 25 | kind: vOLT |
| 26 | |
Scott Baker | 8a66011 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 27 | addresses_vsg: |
Andy Bavier | 6e1602e | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 28 | type: tosca.nodes.AddressPool |
| 29 | properties: |
Andy Bavier | a6a7c0b | 2016-03-02 14:22:10 -0500 | [diff] [blame] | 30 | addresses: 10.168.0.0/24 |
Scott Baker | 8a66011 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 31 | gateway_ip: 10.168.0.1 |
| 32 | gateway_mac: 02:42:0a:a8:00:01 |
| 33 | |
Scott Baker | 97ca910 | 2016-04-13 16:56:39 -0700 | [diff] [blame] | 34 | addresses_exampleservice-public: |
Scott Baker | 8a66011 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 35 | type: tosca.nodes.AddressPool |
| 36 | properties: |
| 37 | addresses: 10.168.1.0/24 |
| 38 | gateway_ip: 10.168.1.1 |
| 39 | gateway_mac: 02:42:0a:a8:00:01 |
Andy Bavier | 6e1602e | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 40 | |
| 41 | service_vsg: |
| 42 | type: tosca.nodes.VSGService |
| 43 | requirements: |
Scott Baker | 6b3c9b3 | 2016-04-13 11:25:52 -0700 | [diff] [blame] | 44 | - vrouter_tenant: |
| 45 | node: service_vrouter |
Andy Bavier | 6e1602e | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 46 | relationship: tosca.relationships.TenantOfService |
| 47 | properties: |
| 48 | view_url: /admin/cord/vsgservice/$id$/ |
| 49 | backend_network_label: hpc_client |
| 50 | public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] } |
| 51 | private_key_fn: /opt/xos/synchronizers/vcpe/vcpe_private_key |
Andy Bavier | a6a7c0b | 2016-03-02 14:22:10 -0500 | [diff] [blame] | 52 | wan_container_gateway_ip: 10.168.0.1 |
| 53 | wan_container_gateway_mac: 02:42:0a:a8:00:01 |
Andy Bavier | c57fc26 | 2016-03-01 16:51:33 -0500 | [diff] [blame] | 54 | wan_container_netbits: 24 |
Scott Baker | 4b9d40d | 2016-03-04 12:10:13 -0800 | [diff] [blame] | 55 | # node_label: label_vsg |
Andy Bavier | 6e1602e | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 56 | artifacts: |
| 57 | pubkey: /opt/xos/synchronizers/vcpe/vcpe_public_key |
| 58 | |
Scott Baker | 8a66011 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 59 | service_vrouter: |
| 60 | type: tosca.nodes.VRouterService |
Andy Bavier | 6e1602e | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 61 | properties: |
Scott Baker | a5f95b3 | 2016-04-14 16:06:23 -0700 | [diff] [blame] | 62 | view_url: /admin/vrouter/vrouterservice/$id$/ |
Scott Baker | 8a66011 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 63 | requirements: |
Scott Baker | 6b3c9b3 | 2016-04-13 11:25:52 -0700 | [diff] [blame] | 64 | - addresses_vsg: |
Scott Baker | 8a66011 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 65 | node: addresses_vsg |
| 66 | relationship: tosca.relationships.ProvidesAddresses |
Scott Baker | 6b3c9b3 | 2016-04-13 11:25:52 -0700 | [diff] [blame] | 67 | - addresses_service1: |
Scott Baker | 97ca910 | 2016-04-13 16:56:39 -0700 | [diff] [blame] | 68 | node: addresses_exampleservice-public |
Scott Baker | 8a66011 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 69 | relationship: tosca.relationships.ProvidesAddresses |
Andy Bavier | 6e1602e | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 70 | |
| 71 | Private: |
| 72 | type: tosca.nodes.NetworkTemplate |
| 73 | |
| 74 | management: |
| 75 | type: tosca.nodes.network.Network.XOS |
| 76 | properties: |
| 77 | no-create: true |
| 78 | no-delete: true |
| 79 | no-update: true |
| 80 | |
| 81 | mysite: |
| 82 | type: tosca.nodes.Site |
| 83 | |
Scott Baker | c4d78da | 2016-03-04 10:44:41 -0800 | [diff] [blame] | 84 | label_vsg: |
| 85 | type: tosca.nodes.NodeLabel |
| 86 | |
Andy Bavier | 6e1602e | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 87 | # Networks required by the CORD setup |
| 88 | mysite_vsg-access: |
| 89 | type: tosca.nodes.network.Network |
| 90 | properties: |
| 91 | ip_version: 4 |
| 92 | requirements: |
| 93 | - network_template: |
| 94 | node: Private |
| 95 | relationship: tosca.relationships.UsesNetworkTemplate |
| 96 | - owner: |
| 97 | node: mysite_vsg |
| 98 | relationship: tosca.relationships.MemberOfSlice |
| 99 | - connection: |
| 100 | node: mysite_vsg |
| 101 | relationship: tosca.relationships.ConnectsToSlice |
| 102 | |
| 103 | # CORD Slices |
| 104 | mysite_vsg: |
| 105 | description: vSG Controller Slice |
| 106 | type: tosca.nodes.Slice |
| 107 | properties: |
| 108 | network: noauto |
| 109 | requirements: |
| 110 | - vsg_service: |
| 111 | node: service_vsg |
| 112 | relationship: tosca.relationships.MemberOfService |
| 113 | - site: |
| 114 | node: mysite |
| 115 | relationship: tosca.relationships.MemberOfSite |
| 116 | - management: |
| 117 | node: management |
| 118 | relationship: tosca.relationships.ConnectsToNetwork |
| 119 | |
| 120 | # Let's add a user who can be administrator of the household |
| 121 | johndoe@myhouse.com: |
| 122 | type: tosca.nodes.User |
| 123 | properties: |
| 124 | password: letmein |
| 125 | firstname: john |
| 126 | lastname: doe |
| 127 | requirements: |
| 128 | - site: |
| 129 | node: mysite |
| 130 | relationship: tosca.relationships.MemberOfSite |
| 131 | |
| 132 | # A subscriber |
| 133 | My House: |
| 134 | type: tosca.nodes.CORDSubscriber |
| 135 | properties: |
| 136 | service_specific_id: 123 |
| 137 | firewall_enable: false |
| 138 | cdn_enable: false |
| 139 | url_filter_enable: false |
| 140 | url_filter_level: R |
| 141 | requirements: |
| 142 | - house_admin: |
| 143 | node: johndoe@myhouse.com |
| 144 | relationship: tosca.relationships.AdminPrivilege |
| 145 | |
| 146 | Mom's PC: |
| 147 | type: tosca.nodes.CORDUser |
| 148 | properties: |
| 149 | mac: 01:02:03:04:05:06 |
| 150 | level: PG_13 |
| 151 | requirements: |
| 152 | - household: |
| 153 | node: My House |
| 154 | relationship: tosca.relationships.SubscriberDevice |
| 155 | |
| 156 | Dad's PC: |
| 157 | type: tosca.nodes.CORDUser |
| 158 | properties: |
| 159 | mac: 90:E2:BA:82:F9:75 |
| 160 | level: PG_13 |
| 161 | requirements: |
| 162 | - household: |
| 163 | node: My House |
| 164 | relationship: tosca.relationships.SubscriberDevice |
| 165 | |
| 166 | Jack's Laptop: |
| 167 | type: tosca.nodes.CORDUser |
| 168 | properties: |
| 169 | mac: 68:5B:35:9D:91:D5 |
| 170 | level: PG_13 |
| 171 | requirements: |
| 172 | - household: |
| 173 | node: My House |
| 174 | relationship: tosca.relationships.SubscriberDevice |
| 175 | |
| 176 | Jill's Laptop: |
| 177 | type: tosca.nodes.CORDUser |
| 178 | properties: |
| 179 | mac: 34:36:3B:C9:B6:A6 |
| 180 | level: PG_13 |
| 181 | requirements: |
| 182 | - household: |
| 183 | node: My House |
| 184 | relationship: tosca.relationships.SubscriberDevice |
| 185 | |
| 186 | My Volt: |
| 187 | type: tosca.nodes.VOLTTenant |
| 188 | properties: |
| 189 | service_specific_id: 123 |
| 190 | s_tag: 222 |
Andy Bavier | b50c25f | 2016-02-19 11:17:54 -0500 | [diff] [blame] | 191 | c_tag: 111 |
Andy Bavier | 6e1602e | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 192 | requirements: |
| 193 | - provider_service: |
| 194 | node: service_volt |
| 195 | relationship: tosca.relationships.MemberOfService |
| 196 | - subscriber: |
| 197 | node: My House |
| 198 | relationship: tosca.relationships.BelongsToSubscriber |