aboutsummaryrefslogtreecommitdiffstats
path: root/docs/design
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2015-12-16 13:58:18 +0000
committerMaryam Tahhan <maryam.tahhan@intel.com>2015-12-23 10:32:37 +0000
commit02baa4fd66df2dc9d6975b97bde997b3a367f169 (patch)
treec3361ec7ad0ce23133bf99a1f8ac9a210dee16c7 /docs/design
parent00985d31991a1e1b91fcff87e82ff99957611396 (diff)
docs: update design docs after reviewing
Review and update design documentation for Release B. JIRA: VSPERF-160 Change-Id: I2c2167b5ac9161e30aacd277060da22a559dd0c2 Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
Diffstat (limited to 'docs/design')
-rwxr-xr-xdocs/design/vswitchperf_design.rst26
1 files changed, 13 insertions, 13 deletions
diff --git a/docs/design/vswitchperf_design.rst b/docs/design/vswitchperf_design.rst
index 3096b1a6..b8988458 100755
--- a/docs/design/vswitchperf_design.rst
+++ b/docs/design/vswitchperf_design.rst
@@ -17,30 +17,30 @@ Example Command Lines
List all the cli options:
- .. code-block:: console
+.. code-block:: console
$ ./vsperf -h
Run all tests that have ``tput`` in their name - ``p2p_tput``, ``pvp_tput`` etc.:
- .. code-block:: console
+.. code-block:: console
- $ ./vsperf --tests 'tput'
+ $ ./vsperf --tests 'tput'
-As above but override default configuration with settings in 'my_settings.py'.
+As above but override default configuration with settings in '10_custom.conf'.
This is useful as modifying configuration directly in the configuration files
in ``conf/NN_*.py`` shows up as changes under git source control:
- .. code-block:: console
+.. code-block:: console
- $ ./vsperf --conf-file my_settings.py --tests 'tput'
+ $ ./vsperf --conf-file=<path_to_custom_conf>/10_custom.conf --tests 'tput'
Override specific test parameters. Useful for shortening the duration of tests
for development purposes:
- .. code-block:: console
+.. code-block:: console
- $ ./vsperf --test-params 'rfc2544_duration=10;rfc2544_trials=1;packet_sizes=64' --tests 'pvp_tput'
+ $ ./vsperf --test-params 'duration=10;rfc2544_trials=1;pkt_sizes=64' --tests 'pvp_tput'
Typical Test Sequence
=====================
@@ -60,7 +60,7 @@ settings.
Settings are not passed from component to component. Rather they are available
globally to all components once they import the conf package.
- .. code-block:: python
+.. code-block:: python
from conf import settings
...
@@ -69,7 +69,7 @@ globally to all components once they import the conf package.
Settings files (``*.conf``) are valid python code so can be set to complex
types such as lists and dictionaries as well as scalar types:
- .. code-block:: python
+.. code-block:: python
first_packet_size = settings.getValue('PACKET_SIZE_LIST')[0]
@@ -110,7 +110,7 @@ many implementations of different vSwitches, Traffic Generators and VNFs.
IVSwitch
--------
- .. code-block:: python
+.. code-block:: python
class IVSwitch:
start(self)
@@ -127,7 +127,7 @@ IVSwitch
ITrafficGenerator
-----------------
- .. code-block:: python
+.. code-block:: python
class ITrafficGenerator:
connect()
@@ -152,7 +152,7 @@ Note ``send_xxx()`` blocks whereas ``start_xxx()`` does not and must be followed
IVnf
----
- .. code-block:: python
+.. code-block:: python
class IVnf:
start(memory, cpus,