Matteo Scandolo | a4e6e9a | 2016-08-23 12:04:45 -0700 | [diff] [blame^] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | # compile this with "m4 vrouter.m4 > vrouter.yaml" |
| 4 | |
| 5 | # include macros |
| 6 | include(macros.m4) |
| 7 | |
| 8 | node_types: |
| 9 | |
| 10 | tosca.nodes.VRouterService: |
| 11 | derived_from: tosca.nodes.Root |
| 12 | description: > |
| 13 | CORD: The vRouter Service. |
| 14 | capabilities: |
| 15 | xos_base_service_caps |
| 16 | properties: |
| 17 | xos_base_props |
| 18 | xos_base_service_props |
| 19 | rest_hostname: |
| 20 | type: string |
| 21 | required: false |
| 22 | rest_port: |
| 23 | type: string |
| 24 | required: false |
| 25 | rest_user: |
| 26 | type: string |
| 27 | required: false |
| 28 | rest_pass: |
| 29 | type: string |
| 30 | required: false |
| 31 | |
| 32 | tosca.nodes.VRouterDevice: |
| 33 | derived_from: tosca.nodes.Root |
| 34 | description: > |
| 35 | CORD: The vRouter Device. |
| 36 | capabilities: |
| 37 | xos_base_service_caps |
| 38 | properties: |
| 39 | xos_base_props |
| 40 | openflow_id: |
| 41 | type: string |
| 42 | required: true |
| 43 | config_key: |
| 44 | type: string |
| 45 | required: false |
| 46 | driver: |
| 47 | type: string |
| 48 | required: true |
| 49 | |
| 50 | tosca.nodes.VRouterPort: |
| 51 | derived_from: tosca.nodes.Root |
| 52 | description: > |
| 53 | CORD: The vRouter Port. |
| 54 | capabilities: |
| 55 | xos_base_service_caps |
| 56 | properties: |
| 57 | xos_base_props |
| 58 | openflow_id: |
| 59 | type: string |
| 60 | required: true |
| 61 | |
| 62 | tosca.nodes.VRouterInterface: |
| 63 | derived_from: tosca.nodes.Root |
| 64 | description: > |
| 65 | CORD: The vRouter Interface. |
| 66 | capabilities: |
| 67 | xos_base_service_caps |
| 68 | properties: |
| 69 | xos_base_props |
| 70 | name: |
| 71 | type: string |
| 72 | required: true |
| 73 | mac: |
| 74 | type: string |
| 75 | required: true |
| 76 | vlan: |
| 77 | type: string |
| 78 | required: false |
| 79 | |
| 80 | tosca.nodes.VRouterIp: |
| 81 | derived_from: tosca.nodes.Root |
| 82 | description: > |
| 83 | CORD: The vRouter Ip. |
| 84 | capabilities: |
| 85 | xos_base_service_caps |
| 86 | properties: |
| 87 | xos_base_props |
| 88 | ip: |
| 89 | type: string |
| 90 | required: true |
| 91 | |
| 92 | tosca.nodes.VRouterApp: |
| 93 | derived_from: tosca.nodes.Root |
| 94 | description: > |
| 95 | CORD: The vRouter ONOS App Config. |
| 96 | capabilities: |
| 97 | xos_base_service_caps |
| 98 | properties: |
| 99 | xos_base_props |
| 100 | name: |
| 101 | type: string |
| 102 | required: true |
| 103 | control_plane_connect_point: |
| 104 | type: string |
| 105 | required: true |
| 106 | ospf_enabled: |
| 107 | type: boolean |
| 108 | required: true |
| 109 | |
| 110 | tosca.relationships.PortOfDevice: |
| 111 | derived_from: tosca.relationships.Root |
| 112 | valid_target_types: [ tosca.capabilities.xos.VRouterPort ] |
| 113 | |
| 114 | tosca.relationships.InterfaceOfPort: |
| 115 | derived_from: tosca.relationships.Root |
| 116 | valid_target_types: [ tosca.capabilities.xos.VRouterInterface ] |
| 117 | |
| 118 | tosca.relationships.IpOfInterface: |
| 119 | derived_from: tosca.relationships.Root |
| 120 | valid_target_types: [ tosca.capabilities.xos.VRouterIp ] |