Changes between Version 2 and Version 3 of GEC20Agenda/LabWiki/ModuleC/Execute
- Timestamp:
- 06/18/14 15:50:15 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC20Agenda/LabWiki/ModuleC/Execute
v2 v3 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 defProperty('source1', "nodea-dbhatpostboot", "ID of a resource") 25 defProperty('source2', "switch1-dbhatpostboot", "ID of a resource") 26 defProperty('source3', "switch2-dbhatpostboot", "ID of a resource") 26 27 27 28 … … 29 30 defProperty('sinkaddr13', '192.168.1.8', "Ping destination address") 30 31 31 defProperty('sinkaddr21', '192.168.1.9', "Ping destination address") 32 defProperty('sinkaddr23', '192.168.1.10', "Ping destination address") 32 defProperty('sinkaddr21', '192.168.1.13', "Ping destination address") 33 defProperty('sinkaddr23', '192.168.1.14', "Ping destination address") 34 defProperty('sinkaddr24', '192.168.1.15', "Ping destination address") 35 33 36 34 37 defApplication('ping') do |app| … … 57 60 app.binary_path = '/usr/bin/trema run /root/learning-switch.rb' 58 61 end 59 60 defGroup('Source2', property.source2) do |node| 62 defGroup('Source2', property.source2, property.source3) do |node| 61 63 node.addApplication("trema") 62 64 end 63 64 65 defGroup('Source1', property.source1) do |node| 65 66 node.addApplication("ping") do |app| … … 87 88 app.measure('ping', :samples => 1) 88 89 end 90 node.addApplication("ping") do |app| 91 app.setProperty('target', property.sinkaddr24) 92 app.setProperty('count', 30) 93 #app.setProperty('interval', 1) 94 app.measure('ping', :samples => 1) 95 end 89 96 end 97 98 99 100 101 102 #defGroup('Sink1', property.sink1) do |node| 103 #end 104 105 #defGroup('Sink2', property.sink2) do |node| 106 #end 107 108 #defGroup('Sink3', property.sink3) do |node| 109 #end 110 111 #defGroup('Sink4', property.sink4) do |node| 112 #end 113 114 #defGroup('Sink5', property.sink5) do |node| 115 #end 90 116 91 117 onEvent(:ALL_UP_AND_INSTALLED) do |event|