Bug 2446 - Comma instead of pipe in Attributes
Comma instead of pipe in Attributes
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: traffic-control
ns-3-dev
All All
: P5 trivial
Assigned To: Stefano Avallone
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-22 17:54 EDT by Tommaso Pecorella
Modified: 2016-06-23 17:59 EDT (History)
2 users (show)

See Also:


Attachments
fix (3.28 KB, patch)
2016-06-22 17:54 EDT, Tommaso Pecorella
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2016-06-22 17:54:09 EDT
Created attachment 2477 [details]
fix

In the traffic control examples it is used a wrong syntax, e.g.:
clientHelper.SetAttribute ("OnTime", StringValue ("ns3::UniformRandomVariable[Min=0.,Max=1.]"));

The correct field separator is |, not a comma.

It is worth noticing that also the attribute-test-suite contains the very same mistake.
Lucky enough, the call was setting the attribute value to its default value.

As a side note... is this mentioned in the documentation ?
Comment 1 Tom Henderson 2016-06-22 20:53:12 EDT
see also a similar problem with:

examples/tcp/tcp-nsc-lfn.cc:103
Comment 2 Stefano Avallone 2016-06-23 09:31:33 EDT
Thanks for spotting these mistakes. Please go ahead and commit the fix, thanks!
Comment 3 Tommaso Pecorella 2016-06-23 17:59:34 EDT
pushet in changeset 12168:b7d315126827