traffic: rm --scale-traffic default value
authorJoe Guo <joeg@catalyst.net.nz>
Mon, 14 Jan 2019 22:06:29 +0000 (11:06 +1300)
committerTim Beale <timbeale@samba.org>
Wed, 23 Jan 2019 02:09:41 +0000 (03:09 +0100)
-S, --scale--traffic defaults to 1.0
when we switch to new option -T, both -T and -S are set, which raise an error:

script/traffic_replay #234: --scale-traffic and --packets-per-second are incompatible. Use one or the other.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Tim Beale <timbeale@catalyst.net.nz>
Autobuild-User(master): Tim Beale <timbeale@samba.org>
Autobuild-Date(master): Wed Jan 23 03:09:41 CET 2019 on sn-devel-144

script/traffic_replay

index 7174d246d3b7f4c16cc2125e60788f29503ba5e9..fab9a8ded2631e97354638ddababce392e5b1d37 100755 (executable)
@@ -78,7 +78,7 @@ def main():
     model_group = optparse.OptionGroup(parser, 'Traffic Model Options',
                                        'These options alter the traffic '
                                        'generated by the model')
-    model_group.add_option('-S', '--scale-traffic', type='float', default=1.0,
+    model_group.add_option('-S', '--scale-traffic', type='float',
                            help=('Increase the number of conversations by '
                                  'this factor (or use -T)'))
     parser.add_option('-T', '--packets-per-second', type=float,