close
Warning:
Can't synchronize with repository "(default)" (/common/SVN/wimax does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Mar 15, 2013, 3:38:46 AM (11 years ago)
- Author:
-
ffund01
- Comment:
-
—
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v7
|
v8
|
|
278 | 278 | class NodeSetPath < MObject |
279 | 279 | attr_reader :nodeSet, :path |
280 | | |
| 280 | |
281 | 281 | # List of valid 'PATHS' for a NodeSet |
282 | 282 | VALID_PATHS_WITH_VALUES = { |
… |
… |
|
289 | 289 | "essid=" => %r{net/[ew][01]}, |
290 | 290 | "ip=" => %r{net/[ewxt][01]}, |
| 291 | "dynip=" => %r{net/[t][01]}, |
291 | 292 | "channel=" => %r{net/[ewt][01]}, |
292 | 293 | "tx_power=" => %r{net/[ew][01]}, |
… |
… |
|
309 | 310 | /[ewxt][01]/ => /net/ |
310 | 311 | } |
| 312 | |
311 | 313 | }}} |
312 | 314 | |
… |
… |
|
327 | 329 | |
328 | 330 | == Usage: Sample Scripts == |
329 | | === With Dynamic Addressing === |
330 | | |
331 | | {{{ |
332 | | defProperty('runtime',20,"Time in second for the experiment is to run") |
333 | | defProperty('client',"128.238.66.220","IP address of iperf server") |
334 | | defProperty('interval', 1, "Interval of Iperf measurements") |
335 | | defProperty('sender', 'omf.witest.node10', "ID of sender node") |
336 | | |
337 | | defGroup('Group', property.sender) do |node| |
338 | | node.net.t0.channel = "2595000,10" |
339 | | node.net.t0.mtu=1470 |
340 | | node.addApplication("test:app:iperf") do |app| |
341 | | app.setProperty('client', property.client) |
342 | | app.setProperty('interval', property.interval) |
343 | | app.setProperty('time', property.runtime) |
344 | | app.measure('TCP_Info', :samples =>1) |
345 | | end |
346 | | end |
347 | | |
348 | | onEvent(:ALL_UP_AND_INSTALLED) do |event| |
349 | | wait 50 |
350 | | info "This is an iperf experiment using a teltonika modem" |
351 | | allGroups.startApplications |
352 | | wait property.runtime |
353 | | wait 2 |
354 | | allGroups.stopApplications |
355 | | wait 2 |
356 | | Experiment.done |
357 | | end |
358 | | }}} |
359 | | |
360 | 331 | |
361 | 332 | === With Static Addressing === |