Changes between Version 2 and Version 3 of GEC21Agenda/LabWiki/ModuleA/Execute
- Timestamp:
- 10/15/14 17:38:05 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GEC21Agenda/LabWiki/ModuleA/Execute
v2 v3 23 23 {{{ 24 24 #!ruby 25 defProperty('source1', "nodea-dbhattesteg", "ID of a resource") 26 defProperty('source2', "switch-dbhattesteg", "ID of a resource") 25 26 defProperty('resource1', "nodea", "ID of a resource") 27 defProperty('resource2', "switch", "ID of a resource") 27 28 28 29 … … 47 48 # sample from this MP will be composed of a 4-tuples (addr,ttl,rtt,rtt_unit) 48 49 app.defMeasurement('ping') do |m| 49 m.defMetric(' dest_addr',:string)50 m.defMetric('remote',:string) 50 51 m.defMetric('ttl',:uint32) 51 52 m.defMetric('rtt',:double) … … 58 59 app.binary_path = '/bin/sh /root/ovs-setup2.sh' 59 60 end 60 defGroup('Source2', property. source2) do |node|61 defGroup('Source2', property.resource2) do |node| 61 62 node.addApplication("trema") 62 63 end 63 defGroup('Source1', property. source1) do |node|64 defGroup('Source1', property.resource1) do |node| 64 65 node.addApplication("ping") do |app| 65 66 app.setProperty('target', property.sinkaddr12) … … 99 100 100 101 defGraph 'RTT' do |g| 101 g.ms('ping').select(:oml_seq, : dest_addr, :rtt)102 g.ms('ping').select(:oml_seq, :remote, :rtt) 102 103 g.caption "RTT of received packets." 103 104 g.type 'line_chart3' 104 g.mapping :x_axis => :oml_seq, :y_axis => :rtt, :group_by => : dest_addr105 g.mapping :x_axis => :oml_seq, :y_axis => :rtt, :group_by => :remote 105 106 g.xaxis :legend => 'oml_seq' 106 107 g.yaxis :legend => 'rtt', :ticks => {:format => 's'}