blob: ec882c9386d2030cb1451ff3a25c29b1c098a8db [file] [log] [blame]
Zack Williamsa2763112017-01-03 11:38:38 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: created by platform-install/roles/cord-profile/templates/volt-devices.yaml.j2
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10
11# vOLT service defined in services.yaml
12 service#volt:
13 type: tosca.nodes.VOLTService
14 properties:
15 no-create: True
16 no-delete: True
17 no-update: True
18
19# vOLT devices
20{% for device in volt_devices %}
21 {{ device.name }}-{{ device.index | default(loop.index) }}:
22 type: tosca.nodes.VOLTDevice
23 properties:
24 driver: {{ device.driver | default("pmc-olt") }}
25 openflow_id: {{ device.openflow_id }}
26 access_devices: {{ device.access_devices }}
27 requirements:
28 - volt_service:
29 node: service#volt
30 relationship: tosca.relationships.MemberOfService
31 - access_agent:
32 node: {{ device.name }}-agent-{{ device.index | default(loop.index) }}
33 relationship: tosca.relationships.UsesAgent
34
35 {{ device.name }}-agent-{{ device.index | default(loop.index) }}:
36 type: tosca.nodes.AccessAgent
37 properties:
38 mac: {{ device.agent_mac }}
39 port_mappings: {{ device.agent_port_mappings }}
40 requirements:
41 - volt_service:
42 node: service#volt
43 relationship: tosca.relationships.MemberOfService
44
45{% endfor %}
46