Changes between Version 28 and Version 29 of GEC20Agenda/LabWiki/ModuleA/Execute
- Timestamp:
- 06/22/14 13:59:21 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC20Agenda/LabWiki/ModuleA/Execute
v28 v29 22 22 For reference, we show the experiment script here: 23 23 {{{ 24 defProperty('source1', "nodea-gimitest1", "ID of a resource") 25 defProperty('source2', "switch-gimitest1", "ID of a resource") 24 25 defProperty('source1', "nodea-dbhattesteg", "ID of a resource") 26 defProperty('source2', "switch-dbhattesteg", "ID of a resource") 26 27 27 28 … … 30 31 31 32 defProperty('sinkaddr21', '192.168.1.9', "Ping destination address") 32 defProperty('sinkaddr23', '192.168.1.10', "Ping destination address") 33 33 34 34 35 defApplication('ping') do |app| … … 55 56 defApplication('trema') do |app| 56 57 app.description = 'This app runs trema from command line' 57 app.binary_path = '/ usr/bin/trema run /root/learning-switch.rb'58 app.binary_path = '/bin/sh /root/ovs-setup2.sh' 58 59 end 59 60 60 defGroup('Source2', property.source2) do |node| 61 61 node.addApplication("trema") 62 62 end 63 64 63 defGroup('Source1', property.source1) do |node| 65 64 node.addApplication("ping") do |app| … … 81 80 app.measure('ping', :samples => 1) 82 81 end 83 node.addApplication("ping") do |app|84 app.setProperty('target', property.sinkaddr23)85 app.setProperty('count', 30)86 #app.setProperty('interval', 1)87 app.measure('ping', :samples => 1)88 end89 82 end 83 90 84 91 85 onEvent(:ALL_UP_AND_INSTALLED) do |event| 92 86 info "Starting the ping" 93 after 2do87 after 1 do 94 88 group('Source2').startApplications 95 89 end 96 after 10 do90 after 30 do 97 91 group('Source1').startApplications 98 92 end … … 112 106 g.yaxis :legend => 'rtt', :ticks => {:format => 's'} 113 107 end 108 114 109 }}} 115 110