Alessandro Puccetti
01b6bc5be6
plugins/traffic-contorl: split DoTrafficControl()
...
For clearer code `DoTrafficControl()` is splitted in multiple functions.
2016-09-09 13:14:24 +02:00
Alessandro Puccetti
00a87922e6
plugins/traffic-control: code refactoring
...
Substitute `split()` with `strings.Fileds()`.
Remove unnecessary functions and commented code.
Unabbreviate variable and function names.
2016-09-09 13:14:24 +02:00
Alessandro Puccetti
9b86143deb
plugins/traffic-control: README
...
Added simple README to give an overview of the plugin.
Also the value of the latency controls were changed.
2016-09-09 12:32:10 +02:00
Alessandro Puccetti
71f9d8874f
plugins/traffic-control: Some style fixes
...
Comment before exported functions.
When `if` block ends with a return statement, drop the else and outdent its block.
2016-09-09 12:31:53 +02:00
Alessandro Puccetti
2bbcd415d1
plugins/traffic-control: add table prefix constant
...
For cleaner code
2016-09-06 11:53:36 +02:00
Alessandro Puccetti
c213270028
plugins/traffic-control: remove latency and packet loss from generic metadata
...
Latency and packet loass are displayed in the table, there is not need to
show them in the general section too.
2016-09-06 11:53:36 +02:00
Alessandro Puccetti
c0fca6d2be
plugins/traffic-control: spilt getControls()
...
This is done to make easier get specific controls when MetadataRow will
accept controls.
2016-09-06 11:53:36 +02:00
Alessandro Puccetti
79453519b2
plugins/traffic-control: separate function for clear settings
...
Make easier to combine latency and packet loss settings.
2016-09-06 11:53:36 +02:00
Alessandro Puccetti
176cb5f99f
plugins/traffic-control: added packet drop control
...
Packet drop control set 10% of packet drop
2016-09-06 11:53:36 +02:00
Alessandro Puccetti
5d3e5b23ec
plugins/traffic-control: added clear setting control
...
This control remove any previous setting
2016-09-06 11:53:35 +02:00
Alessandro Puccetti
6eefb70628
plugins/traffic-control: add packet loss to the report
...
This patch add packet loss to the report and the appropriet metadata template.
2016-09-06 11:53:35 +02:00
Alessandro Puccetti
8cbd2c2db6
plugins/traffic-control: create Traffic control table
...
The traffic control plugin will display the status in this table.
2016-09-06 11:53:35 +02:00
Alessandro Puccetti
9df70ec380
plugins/traffic-control: refactoring
...
Use string for delay and packet loss parameter, code refactoring,
improved error messages, fix typos, add empty status representation,
fix namesapce ID representation.
2016-09-06 11:53:35 +02:00
Alessandro Puccetti
068c366aa8
plugins/traffic-control: add status information in metadata
...
This patch sends the delay and packet loss values along with
the container metadata. In this way the user has a direct feedback
about the traffic control plugin status.
2016-09-06 11:53:35 +02:00
Krzesimir Nowak
c5cc9814fe
Add an example traffic control plugin
...
As it is an initial implementation, it only controls latency of the
outgoing (egress) traffic. There is also a TODO to turn this plugin
into something more serious. Also, at some point we may consider
moving this plugin outside of "example" directory.
2016-09-06 11:53:35 +02:00