blob: 058312af7c51d312d038ed47f67ee7363e019e72 [file] [log] [blame]
Matteo Scandolo44bf8912016-11-21 13:56:04 -08001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Just enough Tosca to get the vSG slice running on the CORD POD
4
5imports:
6 - custom_types/xos.yaml
7 - custom_types/vrouter.yaml
8
9topology_template:
10 node_templates:
11
12 service#vrouter:
13 type: tosca.nodes.VRouterService
14 properties:
15 view_url: /admin/vrouter/
16 no-delete: true
17 no-create: true
18 rest_hostname: onos-fabric
19 rest_port: 8181
20 rest_user: onos
21 rest_pass: rocks
22
23 device#of:00000000000000b1:
24 type: tosca.nodes.VRouterDevice
25 properties:
26 openflow_id: of:00000000000000b1
27 driver: softrouter
28 # config_key: basic
29 requirements:
30 - service#vrouter:
31 node: service#vrouter
32 relationship: tosca.relationships.MemberOfService
33
34 # Port 1
35 port#port1/1:
36 type: tosca.nodes.VRouterPort
37 properties:
38 openflow_id: of:00000000000000b1/1
39 requirements:
40 - device#of:00000000000000b1:
41 node: device#of:00000000000000b1
42 relationship: tosca.relationships.PortOfDevice
43 - service#vrouter:
44 node: service#vrouter
45 relationship: tosca.relationships.MemberOfService
46
47 interface#b1-1:
48 type: tosca.nodes.VRouterInterface
49 properties:
50 name: b1-1
51 mac: 00:00:00:00:00:01
52 requirements:
53 - port#port1/1:
54 node: port#port1/1
55 relationship: tosca.relationships.InterfaceOfPort
56
57 ips#10.0.1.2/24:
58 type: tosca.nodes.VRouterIp
59 properties:
60 ip: 10.0.1.2/24
61 requirements:
62 - interface#b1-1:
63 node: interface#b1-1
64 relationship: tosca.relationships.IpOfInterface
65
66 # Port 2
67 port#port1/2:
68 type: tosca.nodes.VRouterPort
69 properties:
70 openflow_id: of:00000000000000b1/2
71 requirements:
72 - device#of:00000000000000b1:
73 node: device#of:00000000000000b1
74 relationship: tosca.relationships.PortOfDevice
75 - service#vrouter:
76 node: service#vrouter
77 relationship: tosca.relationships.MemberOfService
78
79 interface#b1-2:
80 type: tosca.nodes.VRouterInterface
81 properties:
82 name: b1-2
83 mac: 00:00:00:00:00:01
84 requirements:
85 - port#port1/2:
86 node: port#port1/2
87 relationship: tosca.relationships.InterfaceOfPort
88
89 ips#10.0.2.2/24:
90 type: tosca.nodes.VRouterIp
91 properties:
92 ip: 10.0.2.2/24
93 requirements:
94 - interface#b1-1:
95 node: interface#b1-2
96 relationship: tosca.relationships.IpOfInterface
97
98 # Port 3
99 port#port1/3:
100 type: tosca.nodes.VRouterPort
101 properties:
102 openflow_id: of:00000000000000b1/3
103 requirements:
104 - device#of:00000000000000b1:
105 node: device#of:00000000000000b1
106 relationship: tosca.relationships.PortOfDevice
107 - service#vrouter:
108 node: service#vrouter
109 relationship: tosca.relationships.MemberOfService
110
111 interface#b1-3:
112 type: tosca.nodes.VRouterInterface
113 properties:
114 name: b1-3
115 mac: 00:00:00:00:00:01
116 requirements:
117 - port#port1/3:
118 node: port#port1/3
119 relationship: tosca.relationships.InterfaceOfPort
120
121 ips#10.0.3.2/24:
122 type: tosca.nodes.VRouterIp
123 properties:
124 ip: 10.0.3.2/24
125 requirements:
126 - interface#b1-1:
127 node: interface#b1-3
128 relationship: tosca.relationships.IpOfInterface
129
130 # Port 4
131 port#port1/4:
132 type: tosca.nodes.VRouterPort
133 properties:
134 openflow_id: of:00000000000000b1/4
135 requirements:
136 - device#of:00000000000000b1:
137 node: device#of:00000000000000b1
138 relationship: tosca.relationships.PortOfDevice
139 - service#vrouter:
140 node: service#vrouter
141 relationship: tosca.relationships.MemberOfService
142
143 interface#b1-4:
144 type: tosca.nodes.VRouterInterface
145 properties:
146 name: b1-4
147 mac: 00:00:00:00:00:01
148 vlan: 100
149 requirements:
150 - port#port1/4:
151 node: port#port1/4
152 relationship: tosca.relationships.InterfaceOfPort
153
154 ips#10.0.4.2/24:
155 type: tosca.nodes.VRouterIp
156 properties:
157 ip: 10.0.4.2/24
158 requirements:
159 - interface#b1-1:
160 node: interface#b1-4
161 relationship: tosca.relationships.IpOfInterface
162
163 app#vrouterApp:
164 type: tosca.nodes.VRouterApp
165 properties:
166 name: org.onosproject.router
167 # can we use a relation to specify the connect point port?
168 control_plane_connect_point: of:00000000000000b1/5
169 ospf_enabled: true
170 requirements:
171 - service#vrouter:
172 node: service#vrouter
173 relationship: tosca.relationships.MemberOfService