Changes between Version 2 and Version 3 of GEC20Agenda/LabWiki/ModuleC/Execute


Ignore:
Timestamp:
06/18/14 15:50:15 (5 years ago)
Author:
zink@cs.umass.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC20Agenda/LabWiki/ModuleC/Execute

    v2 v3  
    2222For reference, we show the experiment script here:
    2323{{{
    24 defProperty('source1', "nodea-gimitest1", "ID of a resource")
    25 defProperty('source2', "switch-gimitest1", "ID of a resource")
     24defProperty('source1', "nodea-dbhatpostboot", "ID of a resource")
     25defProperty('source2', "switch1-dbhatpostboot", "ID of a resource")
     26defProperty('source3', "switch2-dbhatpostboot", "ID of a resource")
    2627
    2728
     
    2930defProperty('sinkaddr13', '192.168.1.8', "Ping destination address")
    3031
    31 defProperty('sinkaddr21', '192.168.1.9', "Ping destination address")
    32 defProperty('sinkaddr23', '192.168.1.10', "Ping destination address")
     32defProperty('sinkaddr21', '192.168.1.13', "Ping destination address")
     33defProperty('sinkaddr23', '192.168.1.14', "Ping destination address")
     34defProperty('sinkaddr24', '192.168.1.15', "Ping destination address")
     35
    3336
    3437defApplication('ping') do |app|
     
    5760  app.binary_path = '/usr/bin/trema run /root/learning-switch.rb'
    5861end
    59 
    60 defGroup('Source2', property.source2) do |node|
     62defGroup('Source2', property.source2, property.source3) do |node|
    6163  node.addApplication("trema")
    6264end
    63 
    6465defGroup('Source1', property.source1) do |node|
    6566  node.addApplication("ping") do |app|
     
    8788    app.measure('ping', :samples => 1)
    8889  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
    8996end
     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
    90116
    91117onEvent(:ALL_UP_AND_INSTALLED) do |event|