The Iperf Parser extracts bandwidth and other information from the output
IperfParser Constructor
| Param: |
|
|---|
IperfParser Constructor
| Param: |
|
|---|
Methods
| __init__([expected_interval, ...]) | IperfParser Constructor | ||
| bandwidth(match) |
|
||
| filename(basename) | Changes the extension of the basename to .csv | ||
| pipe(*args, **kwargs) | |||
| reset() | Resets the attributes set during parsing | ||
| search(line) |
|
||
| valid(match) |
|
Attributes
| bandwidths | Traverses self.interval’s keys in sorted order and generates their bandwidths. | ||
| IperfParser.conversion | |||
| IperfParser.intervals | |||
| logger |
|
||
| regex | A dictionary holding the regular expressions for the 2 formats |
| Param: |
|
|---|---|
| Return type: | float |
| Returns: | the bandwidth in the self.units |
Changes the extension of the basename to .csv
| Param: |
|
|---|---|
| Returns: | the filename with the extension changed to .csv |
| Param: |
|
|---|---|
| Return type: | float |
| Returns: | the transfer in the self.units |
traverses the intervals, infilling missing intervals
| Param: |
|
|---|---|
| Yield: | next value for the interval |
| Param: |
|
|---|---|
| Returns: | True if the end-start interval is valid (within tolerance) |
Traverses self.interval’s keys in sorted order and generates their bandwidths.
| Yield: | self.interval’s values in the sorted order of the intervals |
|---|
| Returns: | A logging object. |
|---|