Matteo Scandolo | a4e6e9a | 2016-08-23 12:04:45 -0700 | [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 | - custom_types/vrouter.yaml |
| 8 | |
| 9 | topology_template: |
| 10 | node_templates: |
| 11 | |
| 12 | service#vRouterSample: |
| 13 | type: tosca.nodes.VRouterService |
| 14 | properties: |
| 15 | view_url: /admin/vrouter/vrouterservice/$id$/ |
| 16 | rest_hostname: 10.0.2.2 |
| 17 | rest_port: 8181 |
| 18 | rest_user: onos |
| 19 | rest_pass: rocks |
| 20 | |
| 21 | device#switch: |
| 22 | type: tosca.nodes.VRouterDevice |
| 23 | properties: |
| 24 | openflow_id: of:000000000001 |
| 25 | driver: softrouter |
| 26 | # config_key: basic |
| 27 | requirements: |
| 28 | - service#vRouterSample: |
| 29 | node: service#vRouterSample |
| 30 | relationship: tosca.relationships.MemberOfService |
| 31 | |
| 32 | port#sample_port: |
| 33 | type: tosca.nodes.VRouterPort |
| 34 | properties: |
| 35 | openflow_id: of:000000000001/1 |
| 36 | requirements: |
| 37 | - device#switch: |
| 38 | node: device#switch |
| 39 | relationship: tosca.relationships.PortOfDevice |
| 40 | - service#vRouterSample: |
| 41 | node: service#vRouterSample |
| 42 | relationship: tosca.relationships.MemberOfService |
| 43 | |
| 44 | interface#b1-1: |
| 45 | type: tosca.nodes.VRouterInterface |
| 46 | properties: |
| 47 | name: b1-1 |
| 48 | mac: 00:00:00:00:00:01 |
| 49 | vlan: 100 |
| 50 | requirements: |
| 51 | - port#sample_port: |
| 52 | node: port#sample_port |
| 53 | relationship: tosca.relationships.InterfaceOfPort |
| 54 | |
| 55 | vrouter_ips: |
| 56 | type: tosca.nodes.VRouterIp |
| 57 | properties: |
| 58 | ip: 10.0.4.2/24 |
| 59 | requirements: |
| 60 | - interface#b1-1: |
| 61 | node: interface#b1-1 |
| 62 | relationship: tosca.relationships.IpOfInterface |
| 63 | |
| 64 | app#vrouterApp: |
| 65 | type: tosca.nodes.VRouterApp |
| 66 | properties: |
| 67 | name: org.onosproject.router |
| 68 | # can we use a relation to specify the connect point port? |
| 69 | control_plane_connect_point: of:00000000000000b1/5 |
| 70 | ospf_enabled: true |
| 71 | requirements: |
| 72 | - service#vRouterSample: |
| 73 | node: service#vRouterSample |
| 74 | relationship: tosca.relationships.MemberOfService |