Andy Bavier | c30bd77 | 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 | 3e25325 | 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 | c30bd77 | 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 | 56fe1e8 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 27 | addresses_vsg: |
Andy Bavier | c30bd77 | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 28 | type: tosca.nodes.AddressPool |
| 29 | properties: |
Andy Bavier | 671403b | 2016-03-02 14:22:10 -0500 | [diff] [blame] | 30 | addresses: 10.168.0.0/24 |
Scott Baker | 56fe1e8 | 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 | 5d268e5 | 2016-04-13 16:56:39 -0700 | [diff] [blame] | 34 | addresses_exampleservice-public: |
Scott Baker | 56fe1e8 | 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 | c30bd77 | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 40 | |
| 41 | service_vsg: |
| 42 | type: tosca.nodes.VSGService |
| 43 | requirements: |
Scott Baker | df6375e | 2016-04-13 11:25:52 -0700 | [diff] [blame] | 44 | - vrouter_tenant: |
| 45 | node: service_vrouter |
Andy Bavier | c30bd77 | 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 |
Scott Baker | 29b284a | 2016-03-04 12:10:13 -0800 | [diff] [blame] | 52 | # node_label: label_vsg |
Andy Bavier | c30bd77 | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 53 | artifacts: |
| 54 | pubkey: /opt/xos/synchronizers/vcpe/vcpe_public_key |
| 55 | |
Scott Baker | 56fe1e8 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 56 | service_vrouter: |
| 57 | type: tosca.nodes.VRouterService |
Andy Bavier | c30bd77 | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 58 | properties: |
Scott Baker | 92a65b5 | 2016-04-14 16:06:23 -0700 | [diff] [blame] | 59 | view_url: /admin/vrouter/vrouterservice/$id$/ |
Scott Baker | 56fe1e8 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 60 | requirements: |
Scott Baker | df6375e | 2016-04-13 11:25:52 -0700 | [diff] [blame] | 61 | - addresses_vsg: |
Scott Baker | 56fe1e8 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 62 | node: addresses_vsg |
| 63 | relationship: tosca.relationships.ProvidesAddresses |
Scott Baker | df6375e | 2016-04-13 11:25:52 -0700 | [diff] [blame] | 64 | - addresses_service1: |
Scott Baker | 5d268e5 | 2016-04-13 16:56:39 -0700 | [diff] [blame] | 65 | node: addresses_exampleservice-public |
Scott Baker | 56fe1e8 | 2016-04-13 09:12:19 -0700 | [diff] [blame] | 66 | relationship: tosca.relationships.ProvidesAddresses |
Andy Bavier | c30bd77 | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 67 | |
Andy Bavier | b1df2dc | 2016-04-21 14:17:01 -0400 | [diff] [blame] | 68 | service_ONOS_CORD: |
| 69 | type: tosca.nodes.ONOSService |
| 70 | |
Andy Bavier | db8681f | 2016-04-21 12:54:15 -0400 | [diff] [blame] | 71 | vOLT_ONOS_app: |
| 72 | type: tosca.nodes.ONOSvOLTApp |
| 73 | requirements: |
| 74 | - onos_tenant: |
| 75 | node: service_ONOS_CORD |
| 76 | relationship: tosca.relationships.TenantOfService |
| 77 | - volt_service: |
| 78 | node: service_volt |
| 79 | relationship: tosca.relationships.UsedByService |
| 80 | properties: |
| 81 | install_dependencies: onos-ext-notifier-1.0-SNAPSHOT.oar, onos-ext-volt-event-publisher-1.0-SNAPSHOT.oar |
| 82 | dependencies: org.onosproject.openflow-base, org.onosproject.olt, org.ciena.onos.ext_notifier, org.ciena.onos.volt_event_publisher |
Andy Bavier | 001c635 | 2016-04-27 15:57:14 -0400 | [diff] [blame^] | 83 | autogenerate: volt-network-cfg |
| 84 | autogenerate: volt-component-cfg |
Andy Bavier | db8681f | 2016-04-21 12:54:15 -0400 | [diff] [blame] | 85 | |
Andy Bavier | c30bd77 | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 86 | Private: |
| 87 | type: tosca.nodes.NetworkTemplate |
| 88 | |
| 89 | management: |
| 90 | type: tosca.nodes.network.Network.XOS |
| 91 | properties: |
| 92 | no-create: true |
| 93 | no-delete: true |
| 94 | no-update: true |
| 95 | |
| 96 | mysite: |
| 97 | type: tosca.nodes.Site |
| 98 | |
Scott Baker | 58dd7c9 | 2016-03-04 10:44:41 -0800 | [diff] [blame] | 99 | label_vsg: |
| 100 | type: tosca.nodes.NodeLabel |
| 101 | |
Andy Bavier | c30bd77 | 2016-02-17 14:14:11 -0500 | [diff] [blame] | 102 | # Networks required by the CORD setup |
| 103 | mysite_vsg-access: |
| 104 | type: tosca.nodes.network.Network |
| 105 | properties: |
| 106 | ip_version: 4 |
| 107 | requirements: |
| 108 | - network_template: |
| 109 | node: Private |
| 110 | relationship: tosca.relationships.UsesNetworkTemplate |
| 111 | - owner: |
| 112 | node: mysite_vsg |
| 113 | relationship: tosca.relationships.MemberOfSlice |
| 114 | - connection: |
| 115 | node: mysite_vsg |
| 116 | relationship: tosca.relationships.ConnectsToSlice |
| 117 | |
| 118 | # CORD Slices |
| 119 | mysite_vsg: |
| 120 | description: vSG Controller Slice |
| 121 | type: tosca.nodes.Slice |
| 122 | properties: |
| 123 | network: noauto |
| 124 | requirements: |
| 125 | - vsg_service: |
| 126 | node: service_vsg |
| 127 | relationship: tosca.relationships.MemberOfService |
| 128 | - site: |
| 129 | node: mysite |
| 130 | relationship: tosca.relationships.MemberOfSite |
| 131 | - management: |
| 132 | node: management |
| 133 | relationship: tosca.relationships.ConnectsToNetwork |
| 134 | |
| 135 | # Let's add a user who can be administrator of the household |
| 136 | johndoe@myhouse.com: |
| 137 | type: tosca.nodes.User |
| 138 | properties: |
| 139 | password: letmein |
| 140 | firstname: john |
| 141 | lastname: doe |
| 142 | requirements: |
| 143 | - site: |
| 144 | node: mysite |
| 145 | relationship: tosca.relationships.MemberOfSite |
| 146 | |
| 147 | # A subscriber |
| 148 | My House: |
| 149 | type: tosca.nodes.CORDSubscriber |
| 150 | properties: |
| 151 | service_specific_id: 123 |
| 152 | firewall_enable: false |
| 153 | cdn_enable: false |
| 154 | url_filter_enable: false |
| 155 | url_filter_level: R |
| 156 | requirements: |
| 157 | - house_admin: |
| 158 | node: johndoe@myhouse.com |
| 159 | relationship: tosca.relationships.AdminPrivilege |
| 160 | |
| 161 | Mom's PC: |
| 162 | type: tosca.nodes.CORDUser |
| 163 | properties: |
| 164 | mac: 01:02:03:04:05:06 |
| 165 | level: PG_13 |
| 166 | requirements: |
| 167 | - household: |
| 168 | node: My House |
| 169 | relationship: tosca.relationships.SubscriberDevice |
| 170 | |
| 171 | Dad's PC: |
| 172 | type: tosca.nodes.CORDUser |
| 173 | properties: |
| 174 | mac: 90:E2:BA:82:F9:75 |
| 175 | level: PG_13 |
| 176 | requirements: |
| 177 | - household: |
| 178 | node: My House |
| 179 | relationship: tosca.relationships.SubscriberDevice |
| 180 | |
| 181 | Jack's Laptop: |
| 182 | type: tosca.nodes.CORDUser |
| 183 | properties: |
| 184 | mac: 68:5B:35:9D:91:D5 |
| 185 | level: PG_13 |
| 186 | requirements: |
| 187 | - household: |
| 188 | node: My House |
| 189 | relationship: tosca.relationships.SubscriberDevice |
| 190 | |
| 191 | Jill's Laptop: |
| 192 | type: tosca.nodes.CORDUser |
| 193 | properties: |
| 194 | mac: 34:36:3B:C9:B6:A6 |
| 195 | level: PG_13 |
| 196 | requirements: |
| 197 | - household: |
| 198 | node: My House |
| 199 | relationship: tosca.relationships.SubscriberDevice |
| 200 | |
Andy Bavier | b1df2dc | 2016-04-21 14:17:01 -0400 | [diff] [blame] | 201 | # My Volt: |
| 202 | # type: tosca.nodes.VOLTTenant |
| 203 | # properties: |
| 204 | # service_specific_id: 123 |
| 205 | # s_tag: 222 |
| 206 | # c_tag: 111 |
| 207 | # requirements: |
| 208 | # - provider_service: |
| 209 | # node: service_volt |
| 210 | # relationship: tosca.relationships.MemberOfService |
| 211 | # - subscriber: |
| 212 | # node: My House |
| 213 | # relationship: tosca.relationships.BelongsToSubscriber |