blob: f36eb1e1fd19752c5343b1f158155ca4a7d01c22 [file] [log] [blame]
Claudine Chiue23b4562017-10-18 23:14:05 -04001<!--
2 ~ Copyright 2017-present Open Networking Foundation
3 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16<scenario name="net-setup-vnet1" description="Virtual Network (vnet1) setup steps">
17 <group name="Net-Setup-Vnet1">
18
19 <step name="Get-TenantId" unless="${tenantId}"
20 exec="echo @stc tenantId=TestTenant"/>
21
22 <step name="Set-PhysicalDevice1" unless="${physicalDevice1}"
23 exec="echo @stc physicalDevice1=of:0000000000000001"/>
24
25 <step name="Set-PhysicalDevice2" unless="${physicalDevice2}"
26 exec="echo @stc physicalDevice2=of:0000000000000002"/>
27
28 <step name="Set-VirtualDevice-Setup" unless="${virtualDevice}"
29 exec="echo @stc virtualDevice=of:1122334455660001"/>
30
31 <step name="Set-VirtualHost1-Id-Setup" unless="${virtualHost1Id}"
32 exec="echo @stc virtualHost1Id=3A:13:39:73:9F:83"/>
33
34 <step name="Set-VirtualHost2-Id-Setup" unless="${virtualHost2Id}"
35 exec="echo @stc virtualHost2Id=7A:64:F7:85:9B:31"/>
36
37 <step name="Create-Tenant" requires="~Get-TenantId"
38 exec="onos ${OCI} vnet-add-tenant ${tenantId}"/>
39
40 <step name="Query-Tenant" requires="^"
41 exec="onos-check-vnet ${OCI} checkTenant ${tenantId}"/>
42
43 <step name="Create-Vnet" requires="^"
44 exec="onos ${OCI} vnet-create ${tenantId}"/>
45
46 <step name="Query-Vnet" requires="^"
47 exec="onos-check-vnet ${OCI} getNetworkId ${tenantId}"/>
48
49 <step name="Create-VirtualDevice-1" requires="^"
50 exec="onos ${OCI} vnet-create-device ${networkId} ${virtualDevice}"/>
51
52 <step name="Show-VirtualDevice" requires="^"
53 exec="onos ${OCI} vnet-devices ${networkId}"/>
54
55 <step name="Create-VirtualPort-1" requires="^"
56 exec="onos ${OCI} vnet-create-port ${networkId} ${virtualDevice} 1 ${physicalDevice1} 1"/>
57
58 <step name="Create-VirtualPort-2" requires="^"
59 exec="onos ${OCI} vnet-create-port ${networkId} ${virtualDevice} 2 ${physicalDevice2} 1"/>
60
61 <step name="Show-VirtualPorts-1" requires="^"
62 exec="onos ${OCI} vnet-ports ${networkId} ${virtualDevice}"/>
63
64 <step name="Create-VirtualHost-1" requires="^"
65 exec="onos ${OCI} vnet-create-host ${networkId} ${virtualHost1Id} 65535 ${virtualDevice} 1"/>
66
67 <step name="Create-VirtualHost-2" requires="^"
68 exec="onos ${OCI} vnet-create-host ${networkId} ${virtualHost2Id} 65535 ${virtualDevice} 2"/>
69
70 <step name="Show-VirtualHosts-1" requires="^"
71 exec="onos ${OCI} vnet-hosts ${networkId}"/>
72
73 <step name="Show-PhysicalHosts-1" requires="^"
74 exec="onos ${OCI} hosts "/>
75 </group>
76</scenario>