Andy Bavier | f9eee26 | 2015-10-06 14:55:44 -0400 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Setup CORD-related services -- vOLT, vCPE, vBNG. |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | |
| 8 | topology_template: |
| 9 | node_templates: |
| 10 | # CORD Services |
| 11 | service_volt: |
| 12 | type: tosca.nodes.Service |
| 13 | requirements: |
| 14 | - vcpe_tenant: |
| 15 | node: service_vcpe |
| 16 | relationship: tosca.relationships.TenantOfService |
| 17 | properties: |
| 18 | view_url: /admin/cord/voltservice/$id$/ |
| 19 | kind: vOLT |
| 20 | |
| 21 | Private: |
| 22 | type: tosca.nodes.NetworkTemplate |
| 23 | |
| 24 | # networks required by vCPE |
| 25 | lan_network:
|
| 26 | type: tosca.nodes.network.Network
|
| 27 | properties:
|
| 28 | ip_version: 4
|
| 29 | requirements:
|
| 30 | - network_template:
|
| 31 | node: Private
|
| 32 | relationship: tosca.relationships.UsesNetworkTemplate
|
| 33 | - owner:
|
| 34 | node: mysite_vcpe
|
| 35 | relationship: tosca.relationships.MemberOfSlice
|
| 36 | - connection:
|
| 37 | node: mysite_vcpe
|
| 38 | relationship: tosca.relationships.ConnectsToSlice |
| 39 | |
| 40 | wan_network: |
| 41 | type: tosca.nodes.network.Network |
| 42 | properties: |
| 43 | ip_version: 4 |
| 44 | requirements: |
| 45 | - network_template: |
| 46 | node: Private |
| 47 | relationship: tosca.relationships.UsesNetworkTemplate |
| 48 | - owner: |
| 49 | node: mysite_vcpe |
| 50 | relationship: tosca.relationships.MemberOfSlice |
| 51 | - connection: |
| 52 | node: mysite_vcpe |
| 53 | relationship: tosca.relationships.ConnectsToSlice |
| 54 | |
| 55 | hpc_client_network: |
| 56 | type: tosca.nodes.network.Network |
| 57 | properties: |
| 58 | ip_version: 4 |
| 59 | requirements: |
| 60 | - network_template: |
| 61 | node: Private |
| 62 | relationship: tosca.relationships.UsesNetworkTemplate |
| 63 | - owner: |
| 64 | node: mysite_vcpe |
| 65 | relationship: tosca.relationships.MemberOfSlice |
| 66 | - connection: |
| 67 | node: mysite_vcpe |
| 68 | relationship: tosca.relationships.ConnectsToSlice |
| 69 | |
| 70 | service_vcpe: |
| 71 | type: tosca.nodes.VCPEService |
| 72 | requirements: |
| 73 | - vbng_tenant: |
| 74 | node: service_vbng |
| 75 | relationship: tosca.relationships.TenantOfService |
| 76 | properties: |
| 77 | view_url: /admin/cord/vcpeservice/$id$/ |
| 78 | backend_network_label: hpc_client |
| 79 | public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] } |
| 80 | artifacts: |
| 81 | pubkey: /opt/xos/observers/vcpe/vcpe_public_key |
| 82 | |
| 83 | service_vbng: |
| 84 | type: tosca.nodes.VBNGService |
| 85 | properties: |
| 86 | view_url: /admin/cord/vbngservice/$id$/ |
| 87 | vbng_url: http://10.0.3.136:8181/onos/virtualbng/ |
| 88 | |
| 89 | mysite: |
| 90 | type: tosca.nodes.Site |
| 91 | |
| 92 | mysite_vcpe: |
| 93 | description: vCPE Controller Slice |
| 94 | type: tosca.nodes.Slice |
| 95 | requirements: |
| 96 | - vcpe_service: |
| 97 | node: service_vcpe |
| 98 | relationship: tosca.relationships.MemberOfService |
| 99 | - site: |
| 100 | node: mysite |
| 101 | relationship: tosca.relationships.MemberOfSite |
| 102 | |
| 103 | # Now let's add a subscriber |
| 104 | |
| 105 | My House: |
| 106 | type: tosca.nodes.CORDSubscriber |
| 107 | properties: |
| 108 | service_specific_id: 1234 |
| 109 | firewall_enable: false |
| 110 | cdn_enable: false |
| 111 | url_filter_enable: false |
| 112 | url_filter_level: R |
| 113 | |
| 114 | Mom's PC: |
| 115 | type: tosca.nodes.CORDUser |
| 116 | properties: |
| 117 | mac: 010203040506 |
| 118 | level: PG_13 |
| 119 | requirements: |
| 120 | - household: |
| 121 | node: My House |
| 122 | relationship: tosca.relationships.SubscriberDevice |
| 123 | |
| 124 | Dad's PC: |
| 125 | type: tosca.nodes.CORDUser |
| 126 | properties: |
| 127 | mac: 90E2Ba82F975 |
| 128 | level: PG_13 |
| 129 | requirements: |
| 130 | - household: |
| 131 | node: My House |
| 132 | relationship: tosca.relationships.SubscriberDevice |
| 133 | |
| 134 | Jack's Laptop: |
| 135 | type: tosca.nodes.CORDUser |
| 136 | properties: |
| 137 | mac: 685B359D91D5 |
| 138 | level: PG_13 |
| 139 | requirements: |
| 140 | - household: |
| 141 | node: My House |
| 142 | relationship: tosca.relationships.SubscriberDevice |
| 143 | |
| 144 | Jill's Laptop: |
| 145 | type: tosca.nodes.CORDUser |
| 146 | properties: |
| 147 | mac: 34363BC9B6A6 |
| 148 | level: PG_13 |
| 149 | requirements: |
| 150 | - household: |
| 151 | node: My House |
| 152 | relationship: tosca.relationships.SubscriberDevice |
| 153 | |
| 154 | My Volt: |
| 155 | type: tosca.nodes.VOLTTenant |
| 156 | properties: |
| 157 | service_specific_id: 1234 |
| 158 | vlan_id: 4321 |
| 159 | requirements: |
| 160 | - provider_service: |
| 161 | node: service_volt |
| 162 | relationship: tosca.relationships.MemberOfService |
| 163 | - subscriber: |
| 164 | node: My House |
| 165 | relationship: tosca.relationships.BelongsToSubscriber |