blob: 78987a2429ce77afc5ccfae8621e752147d7c0b2 [file] [log] [blame]
Andrea Campanella6d774232018-12-21 12:18:21 +01001<!--
2 ~ Copyright 2015-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
17<scenario name="net-setup-odtn" description="ODTN network setup steps">
18
19 <group name="ODTN-Net-Setup">
20
21 <!-- Clean -->
22 <step name="ODTN-Net-Setup.Wipe-Out-Data-Before" exec="onos-wipe-out"/>
23
24 <!-- Make sure that there is no data in the system -->
25 <step name="ODTN-Net-Setup.Initial-Summary-Check" requires="~ODTN-Net-Setup.Wipe-Out-Data-Before"
26 exec="onos-check-summary ${OC1} [0-9]* 0 0 0"/>
27
28 <!-- Deactivate unneeded apps -->
29 <group name="ODTN-Net-Setup.Deactivate-Apps" requires="ODTN-Net-Setup.Initial-Summary-Check">
30 <step name="App-Deactivate-fwd"
31 exec="onos ${OCI} app deactivate org.onosproject.fwd"
32 requires="ODTN-Net-Setup.Initial-Summary-Check"/>
33 <step name="App-Deactivate-Openflow"
34 exec="onos ${OCI} app deactivate org.onosproject.openflow"
35 requires="ODTN-Net-Setup.Initial-Summary-Check"/>
36 <step name="App-Deactivate-Drivers"
37 exec="onos ${OCI} app deactivate org.onosproject.drivers"
38 requires="ODTN-Net-Setup.Initial-Summary-Check"/>
39 <step name="App-Deactivate-Mobility"
40 exec="onos ${OCI} app deactivate org.onosproject.mobility"
41 requires="ODTN-Net-Setup.Initial-Summary-Check"/>
42 <step name="App-Deactivate-ProxyArp"
43 exec="onos ${OCI} app deactivate org.onosproject.proxyarp"
44 requires="ODTN-Net-Setup.Initial-Summary-Check"/>
45 <step name="App-Deactivate-RouteService"
46 exec="onos ${OCI} app deactivate org.onosproject.route-service"
47 requires="ODTN-Net-Setup.Initial-Summary-Check"/>
48 </group>
49
50 <!-- Active required apps and yang models-->
51 <group name="ODTN-Net-Setup.Activate-Apps" requires="ODTN-Net-Setup.Deactivate-Apps">
52 <step name="App-Activate-Odtn-Service"
53 exec="onos ${OCI} app activate org.onosproject.odtn-service"
54 requires="ODTN-Net-Setup.Deactivate-Apps"/>
55 </group>
56
57 <group name="ODTN-Net-Setup.Verify-Apps" requires="ODTN-Net-Setup.Activate-Apps" delay="40">
58 <parallel var="${OC#}">
59 <step name="Check-Apps-${#}" exec="onos-check-apps ${OC#} optical-model,yang,config,configsync,faultmanagement,
60 netconf,configsync-netconf,drivers,drivers.netconf,drivers.optical,restconf,protocols.restconfserver,
61 odtn-api,drivers.odtn-driver,odtn-service,models.tapi,models.ietf,models.openconfig,models.openconfig-infinera,
62 models.openconfig-odtn includes"
63 requires="ODTN-Net-Setup.Activate-Apps"/>
64 </parallel>
65 </group>
66
67 <group name="ODTN-Net-Setup.Verify-Logs" requires="ODTN-Net-Setup.Verify-Apps">
68 <parallel var="${OC#}">
69 <step name="Check-Logs-${#}" exec="onos-check-logs ${OC#}"/>
70 </parallel>
71 </group>
72
73 <step name="ODTN-Net-Setup.Tapi-context" requires="ODTN-Net-Setup.Verify-Logs"
74 exec="execute-tapi-context-get-call.py ${OC1} empty"/>
75
76 <group name="ODTN-Net-Setup.Verify-Logs-2" requires="ODTN-Net-Setup.Tapi-context">
77 <parallel var="${OC#}">
78 <step name="Check-Logs-2-${#}" exec="onos-check-logs ${OC#}"/>
79 </parallel>
80 </group>
81
82 <!-- Verify empty connectivity service -->
83
84 <step name="ODTN-Net-Setup.Tapi-connectivity" requires="ODTN-Net-Setup.Tapi-context"
85 exec="execute-tapi-post-call.py ${OC1} tapi-connectivity:get-connectivity-service-list empty"/>
86
87 <!--TODO include check for empty connectivity service-->
88 <!--TODO include 2 or more docker emulators to setup the network for phase 1.0-->
89 <!--TODO push netcfg links between emulated devices -->
90 <!--TODO push emulated links between emulated devices -->
91 <!--TODO check logs -->
92 </group>
93</scenario>