Adding support for topology recipes and cleaning up topologies.
Cleaned-up a few STC scenarios.
Change-Id: I4ffa61953d8cf289406fa572ab7603d996e26a85
diff --git a/tools/test/scenarios/net-activate-fwd.xml b/tools/test/scenarios/net-activate-fwd.xml
index 6b3f9cb..88122f7 100644
--- a/tools/test/scenarios/net-activate-fwd.xml
+++ b/tools/test/scenarios/net-activate-fwd.xml
@@ -15,62 +15,14 @@
-->
<scenario name="net-activate-fwd" description="Activate forwarding apps">
<group name="Net-Activate-Fwd">
- <!-- TODO: parametrize this via recipes -->
-
- <step name="Install-Fwd-Apps"
+ <step name="Activate-Fwd-Apps"
exec="onos ${OC1} app activate org.onosproject.openflow org.onosproject.proxyarp org.onosproject.fwd"/>
- <step name="Check-Fwd-Apps" requires="Install-Fwd-Apps"
+ <step name="Check-Fwd-Apps-Activated" requires="Activate-Fwd-Apps"
exec="onos-check-apps ${OC1} drivers,openflow,proxyarp,fwd includes"/>
- <step name="Check-Fwd-Flows1" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000001 present"/>
- <step name="Check-Fwd-Flows2" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000002 present"/>
- <step name="Check-Fwd-Flows3" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000003 present"/>
- <step name="Check-Fwd-Flows4" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000004 present"/>
- <step name="Check-Fwd-Flows5" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000005 present"/>
- <step name="Check-Fwd-Flows6" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000006 present"/>
- <step name="Check-Fwd-Flows7" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000007 present"/>
- <step name="Check-Fwd-Flows8" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000008 present"/>
- <step name="Check-Fwd-Flows9" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000009 present"/>
- <step name="Check-Fwd-Flowsa" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:000000000000000a present"/>
- <step name="Check-Fwd-Flowsb" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:000000000000000b present"/>
- <step name="Check-Fwd-Flowsc" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:000000000000000c present"/>
- <step name="Check-Fwd-Flowsd" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:000000000000000d present"/>
- <step name="Check-Fwd-Flowse" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:000000000000000e present"/>
- <step name="Check-Fwd-Flowsf" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:000000000000000f present"/>
- <step name="Check-Fwd-Flows10" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000010 present"/>
- <step name="Check-Fwd-Flows11" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000011 present"/>
- <step name="Check-Fwd-Flows12" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000012 present"/>
- <step name="Check-Fwd-Flows13" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000013 present"/>
- <step name="Check-Fwd-Flows14" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000014 present"/>
- <step name="Check-Fwd-Flows15" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000015 present"/>
- <step name="Check-Fwd-Flows16" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000016 present"/>
- <step name="Check-Fwd-Flows17" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000017 present"/>
- <step name="Check-Fwd-Flows18" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000018 present"/>
- <step name="Check-Fwd-Flows19" requires="Check-Fwd-Apps"
- exec="onos-check-ipv4-flows ${OC1} of:0000000000000019 present"/>
+ <parallel var="${OTD#}">
+ <step name="Check-Fwd-Flows-${#}" requires="Check-Fwd-Apps-Activated"
+ exec="onos-check-ipv4-flows ${OC1} ${OTD#} present"/>
+ </parallel>
</group>
</scenario>