blob: a9baf25a0ea72843d582bfe0eec6f2cf40089748 [file] [log] [blame]
tosca_definitions_version: tosca_simple_yaml_1_0
description: Setup CORD-related services -- vOLT, vCPE, vBNG.
imports:
- custom_types/xos.yaml
topology_template:
node_templates:
# CORD Services
service_volt:
type: tosca.nodes.Service
requirements:
- vcpe_tenant:
node: service_vcpe
relationship: tosca.relationships.TenantOfService
properties:
view_url: /admin/cord/voltservice/$id$/
kind: vOLT
Private:
type: tosca.nodes.NetworkTemplate
# networks required by vCPE
lan_network:
type: tosca.nodes.network.Network
properties:
ip_version: 4
requirements:
- network_template:
node: Private
relationship: tosca.relationships.UsesNetworkTemplate
- owner:
node: mysite_vcpe
relationship: tosca.relationships.MemberOfSlice
- connection:
node: mysite_vcpe
relationship: tosca.relationships.ConnectsToSlice
service_vcpe:
type: tosca.nodes.VCPEService
requirements:
- vbng_tenant:
node: service_vbng
relationship: tosca.relationships.TenantOfService
properties:
view_url: /admin/cord/vcpeservice/$id$/
backend_network_label: hpc_client
public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
artifacts:
pubkey: /opt/xos/observers/vcpe/vcpe_public_key
service_vbng:
type: tosca.nodes.VBNGService
properties:
view_url: /admin/cord/vbngservice/$id$/
vbng_url: http://10.0.3.136:8181/onos/virtualbng/
mysite:
type: tosca.nodes.Site
mysite_vcpe:
description: vCPE Controller Slice
type: tosca.nodes.Slice
requirements:
- vcpe_service:
node: service_vcpe
relationship: tosca.relationships.MemberOfService
- site:
node: mysite
relationship: tosca.relationships.MemberOfSite
# Let's add a user who can be administrator of the household
johndoe@myhouse.com:
type: tosca.nodes.User
properties:
password: letmein
firstname: john
lastname: doe
requirements:
- site:
node: mysite
relationship: tosca.relationships.MemberOfSite
# Now let's add a subscriber
My House:
type: tosca.nodes.CORDSubscriber
properties:
service_specific_id: 1234
firewall_enable: true
cdn_enable: true
url_filter_enable: true
url_filter_level: R
requirements:
- house_admin:
node: johndoe@myhouse.com
relationship: tosca.relationships.AdminPrivilege
Mom's PC:
type: tosca.nodes.CORDUser
properties:
mac: 010203040506
level: PG_13
requirements:
- household:
node: My House
relationship: tosca.relationships.SubscriberDevice
Dad's PC:
type: tosca.nodes.CORDUser
properties:
mac: 90E2Ba82F975
level: PG_13
requirements:
- household:
node: My House
relationship: tosca.relationships.SubscriberDevice
Jack's Laptop:
type: tosca.nodes.CORDUser
properties:
mac: 685B359D91D5
level: PG_13
requirements:
- household:
node: My House
relationship: tosca.relationships.SubscriberDevice
Jill's Laptop:
type: tosca.nodes.CORDUser
properties:
mac: 34363BC9B6A6
level: PG_13
requirements:
- household:
node: My House
relationship: tosca.relationships.SubscriberDevice
My Volt:
type: tosca.nodes.VOLTTenant
properties:
service_specific_id: 1234
s_tag: 222
c_tag: 432
requirements:
- provider_service:
node: service_volt
relationship: tosca.relationships.MemberOfService
- subscriber:
node: My House
relationship: tosca.relationships.BelongsToSubscriber