blob: 9303eb01eb1b930ad469ffd4dc7f6cb1fe75f403 [file] [log] [blame]
Ray Milkey922db302018-04-02 08:54:51 -07001<!--
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-trellis-hag" description="Trellis HAG network setup steps">
18
Ray Milkeyc05bd432019-01-14 09:50:16 -080019 <group name="Net-Trellis-HAG-Setup">
20 <step name="Net-Trellis-HAG-Setup.Push-Topos" exec="onos-push-topos ${OCN}"/>
21 <step name="Net-Trellis-HAG-Setup.Push-Routing" exec="onos-push-routing ${OCN}"/>
Ray Milkey922db302018-04-02 08:54:51 -070022
Ray Milkeyc05bd432019-01-14 09:50:16 -080023 <step name="Net-Trellis-HAG-Setup.Stop-Mininet-If-Needed" env="~" exec="onos-mininet stop"/>
24 <step name="Net-Trellis-HAG-Setup.Clean-Mininet-If-Needed" env="~" exec="onos-mininet cleanup" requires="^"/>
25 <step name="Net-Trellis-HAG-Setup.Wipe-Out-Data-Before" exec="onos-wipe-out" requires="^"/>
Ray Milkey922db302018-04-02 08:54:51 -070026
27 <!-- Make sure that there is no data in the system -->
Ray Milkeyc05bd432019-01-14 09:50:16 -080028 <step name="Net-Trellis-HAG-Setup.Initial-Summary-Check" requires="~Net-Trellis-HAG-Setup.Wipe-Out-Data-Before"
Ray Milkey922db302018-04-02 08:54:51 -070029 exec="onos-check-summary ${OC1} [0-9]* 0 0 0"/>
30
31 <!-- Deactivate unneeded apps -->
Ray Milkeyc05bd432019-01-14 09:50:16 -080032 <group name="Net-Trellis-HAG-Setup.Deactivate-Apps" requires="Net-Trellis-HAG-Setup.Initial-Summary-Check">
Ray Milkey922db302018-04-02 08:54:51 -070033 <step name="App-Deactivate-PathPainter"
34 exec="onos ${OCI} app deactivate org.onosproject.pathpainter"
Ray Milkeyc05bd432019-01-14 09:50:16 -080035 requires="Net-Trellis-HAG-Setup.Initial-Summary-Check"/>
Ray Milkey922db302018-04-02 08:54:51 -070036 <step name="App-Deactivate-Mobility"
37 exec="onos ${OCI} app deactivate org.onosproject.mobility"
Ray Milkeyc05bd432019-01-14 09:50:16 -080038 requires="Net-Trellis-HAG-Setup.Initial-Summary-Check"/>
Ray Milkey922db302018-04-02 08:54:51 -070039 <step name="App-Deactivate-ProxyArp"
40 exec="onos ${OCI} app deactivate org.onosproject.proxyarp"
Ray Milkeyc05bd432019-01-14 09:50:16 -080041 requires="Net-Trellis-HAG-Setup.Initial-Summary-Check"/>
Ray Milkey922db302018-04-02 08:54:51 -070042 <step name="App-Deactivate-RouteService"
43 exec="onos ${OCI} app deactivate org.onosproject.route-service"
Ray Milkeyc05bd432019-01-14 09:50:16 -080044 requires="Net-Trellis-HAG-Setup.Initial-Summary-Check"/>
Ray Milkey922db302018-04-02 08:54:51 -070045 </group>
46
47 <!-- Active required apps -->
Ray Milkeyc05bd432019-01-14 09:50:16 -080048 <group name="Net-Trellis-HAG-Setup.Activate-Apps" requires="Net-Trellis-HAG-Setup.Deactivate-Apps">
Ray Milkey922db302018-04-02 08:54:51 -070049 <step name="App-Activate-Openflow"
50 exec="onos ${OCI} app activate org.onosproject.openflow"
Ray Milkeyc05bd432019-01-14 09:50:16 -080051 requires="Net-Trellis-HAG-Setup.Deactivate-Apps"/>
Ray Milkey922db302018-04-02 08:54:51 -070052 <step name="App-Activate-SegmentRouting"
53 exec="onos ${OCI} app activate org.onosproject.segmentrouting"
Ray Milkeyc05bd432019-01-14 09:50:16 -080054 requires="Net-Trellis-HAG-Setup.Deactivate-Apps"/>
Ray Milkey922db302018-04-02 08:54:51 -070055 <step name="App-Activate-Fpm"
56 exec="onos ${OCI} app activate org.onosproject.fpm"
Ray Milkeyc05bd432019-01-14 09:50:16 -080057 requires="Net-Trellis-HAG-Setup.Deactivate-Apps"/>
Ray Milkey922db302018-04-02 08:54:51 -070058 <step name="App-Activate-DhcpRelay"
59 exec="onos ${OCI} app activate org.onosproject.dhcprelay"
Ray Milkeyc05bd432019-01-14 09:50:16 -080060 requires="Net-Trellis-HAG-Setup.Deactivate-Apps"/>
Ray Milkey922db302018-04-02 08:54:51 -070061 <step name="App-Activate-NetCfgHostProvider"
62 exec="onos ${OCI} app activate org.onosproject.netcfghostprovider"
Ray Milkeyc05bd432019-01-14 09:50:16 -080063 requires="Net-Trellis-HAG-Setup.Deactivate-Apps"/>
Ray Milkey922db302018-04-02 08:54:51 -070064 <step name="App-Activate-RouterAdvertisement"
65 exec="onos ${OCI} app activate org.onosproject.routeradvertisement"
Ray Milkeyc05bd432019-01-14 09:50:16 -080066 requires="Net-Trellis-HAG-Setup.Deactivate-Apps"/>
Ray Milkey922db302018-04-02 08:54:51 -070067 <step name="App-Activate-Mcast"
68 exec="onos ${OCI} app activate org.onosproject.mcast"
Ray Milkeyc05bd432019-01-14 09:50:16 -080069 requires="Net-Trellis-HAG-Setup.Deactivate-Apps"/>
Ray Milkey922db302018-04-02 08:54:51 -070070 </group>
71
72 <!-- set up the trellis environment -->
Ray Milkeyc05bd432019-01-14 09:50:16 -080073 <step name="Net-Trellis-HAG-Setup.Set-Up-Trellis" exec="set-up-trellis ${OCN}" requires="Net-Trellis-HAG-Setup.Activate-Apps"/>
Ray Milkey922db302018-04-02 08:54:51 -070074
75 <!-- configure the trellis topology in ONOS -->
Ray Milkeyc05bd432019-01-14 09:50:16 -080076 <step name="Net-Trellis-HAG-Setup.Config-Topo"
77 requires="Net-Trellis-HAG-Setup.Set-Up-Trellis,Net-Trellis-HAG-Setup.Push-Topos,Net-Trellis-HAG-Setup.Push-Routing"
Ray Milkey922db302018-04-02 08:54:51 -070078 exec="onos-netcfg ${OC1} ${routing}/trellis/trellis_hag.json"/>
79
80 <!-- Bring up mininet -->
Ray Milkeyc05bd432019-01-14 09:50:16 -080081 <step name="Net-Trellis-HAG-Setup.Start-Mininet"
82 requires="Net-Trellis-HAG-Setup.Config-Topo,Net-Trellis-HAG-Setup.Push-Topos,Net-Trellis-HAG-Setup.Stop-Mininet-If-Needed"
Ray Milkey922db302018-04-02 08:54:51 -070083 exec="mininet-trellis ${ONOS_INSTANCES}"/>
Ray Milkeyc05bd432019-01-14 09:50:16 -080084 <step name="Net-Trellis-HAG-Setup.Wait-For-Mininet" requires="Net-Trellis-HAG-Setup.Start-Mininet"
Ray Milkey922db302018-04-02 08:54:51 -070085 exec="onos-mininet wait 10"/>
86
87 <!-- clean up local routing repo if necessary -->
Ray Milkeyc05bd432019-01-14 09:50:16 -080088 <step name="Net-Trellis-HAG-Setup.Clean-Routing"
89 requires="Net-Trellis-HAG-Setup.Start-Mininet"
Ray Milkey922db302018-04-02 08:54:51 -070090 exec="onos-clean-routing ${routing_root}"/>
91 </group>
92</scenario>