Changes between Version 2 and Version 3 of GEC21Agenda/LabWiki/ModuleA/Execute


Ignore:
Timestamp:
10/15/14 17:38:05 (10 years ago)
Author:
divyashri.bhat@gmail.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC21Agenda/LabWiki/ModuleA/Execute

    v2 v3  
    2323{{{
    2424#!ruby
    25 defProperty('source1', "nodea-dbhattesteg", "ID of a resource")
    26 defProperty('source2', "switch-dbhattesteg", "ID of a resource")
     25
     26defProperty('resource1', "nodea", "ID of a resource")
     27defProperty('resource2', "switch", "ID of a resource")
    2728
    2829
     
    4748  # sample from this MP will be composed of a 4-tuples (addr,ttl,rtt,rtt_unit)
    4849  app.defMeasurement('ping') do |m|
    49     m.defMetric('dest_addr',:string)
     50    m.defMetric('remote',:string)
    5051    m.defMetric('ttl',:uint32)
    5152    m.defMetric('rtt',:double)
     
    5859  app.binary_path = '/bin/sh /root/ovs-setup2.sh'
    5960end
    60 defGroup('Source2', property.source2) do |node|
     61defGroup('Source2', property.resource2) do |node|
    6162  node.addApplication("trema")
    6263end
    63 defGroup('Source1', property.source1) do |node|
     64defGroup('Source1', property.resource1) do |node|
    6465  node.addApplication("ping") do |app|
    6566    app.setProperty('target', property.sinkaddr12)
     
    99100
    100101defGraph 'RTT' do |g|
    101   g.ms('ping').select(:oml_seq, :dest_addr, :rtt)
     102  g.ms('ping').select(:oml_seq, :remote, :rtt)
    102103  g.caption "RTT of received packets."
    103104  g.type 'line_chart3'
    104   g.mapping :x_axis => :oml_seq, :y_axis => :rtt, :group_by => :dest_addr
     105  g.mapping :x_axis => :oml_seq, :y_axis => :rtt, :group_by => :remote
    105106  g.xaxis :legend => 'oml_seq'
    106107  g.yaxis :legend => 'rtt', :ticks => {:format => 's'}