Fixed indent
Change-Id: Ifda9434c77708e769b78d613bd956b24f29a3519
diff --git a/testing/control-plane-testing.rst b/testing/control-plane-testing.rst
index f1c94c7..7499296 100644
--- a/testing/control-plane-testing.rst
+++ b/testing/control-plane-testing.rst
@@ -13,20 +13,20 @@
-------------------------
- Clone Mininet and run the install script
- .. code-block:: console
+ .. code-block:: console
- $ cd ~
- $ git clone https://github.com/jhall11/mininet.git # Clone the repository
- $ cd mininet
- $ git branch -v -a # Show all the remote repositories
- $ git checkout -b dynamic_topo origin/dynamic_topo # Checkout the dynamic_topo repository
- $ cd util
- $ sudo ./install.sh -3fvn # Install OpenFlow 1.3, Open Vswitch and Mininet dependencies
+ $ cd ~
+ $ git clone https://github.com/jhall11/mininet.git # Clone the repository
+ $ cd mininet
+ $ git branch -v -a # Show all the remote repositories
+ $ git checkout -b dynamic_topo origin/dynamic_topo # Checkout the dynamic_topo repository
+ $ cd util
+ $ sudo ./install.sh -3fvn # Install OpenFlow 1.3, Open Vswitch and Mininet dependencies
- Follow `Trellis in a Box <https://github.com/opennetworkinglab/routing/tree/master/trellis>`_ to install Trellis dependencies, such as DHCP server and Quagga.
- .. note::
- If DHCP server does not properly run because of a permission error, please see `this <https://help.ubuntu.com/community/isc-dhcp-server#Permission_issues_with_ISC-DHCP_server>`_ to solve the problem.
+ .. note::
+ If DHCP server does not properly run because of a permission error, please see `this <https://help.ubuntu.com/community/ isc-dhcp-server#Permission_issues_with_ISC-DHCP_server>`_ to solve the problem.
- Set environment variables as described in `Create a Cell File <../installation.html#create-a-cell-file>`_
@@ -44,16 +44,16 @@
.. code-block:: console
- cd ~/OnosSystemTest/TestON/bin
- ./cleanup.sh
+ cd ~/OnosSystemTest/TestON/bin
+ ./cleanup.sh
Fabric-related tests are located in ``OnosSystemTest/TestON/tests/USECASE/SegmentRouting/``.
Each individual test can be run by executing ``cli.py`` script with test name. For example:
.. code-block:: console
- cd ~/OnosSystemTest/TestON/bin
- ./cli.py run SRSanity
+ cd ~/OnosSystemTest/TestON/bin
+ ./cli.py run SRSanity
Test Plan
@@ -68,12 +68,12 @@
- 2x3 leaf-spine with dual-homed ToR on one leaf
- 2x5 topology with spines S0 and S1, and leafs L0, L1, L2, L3, L4
- - L1+L2 and L3+L4 are paired switches.
- - All spine links with L1-4 are double links.
- - Hosts take ips with dhcp and there exist 2 external routers.
- - Hosts can use ipv4 or ipv6.
- - We configure untagged/tagged single/dual home hosts in order to test every possible combination.
- - Most of the hosts reside in different ip subnets.
+ - L1+L2 and L3+L4 are paired switches.
+ - All spine links with L1-4 are double links.
+ - Hosts take ips with dhcp and there exist 2 external routers.
+ - Hosts can use ipv4 or ipv6.
+ - We configure untagged/tagged single/dual home hosts in order to test every possible combination.
+ - Most of the hosts reside in different ip subnets.
Tests Steps
-----------
@@ -81,9 +81,9 @@
- Start mininet and check flow state
- Test connectivity
- - pingall
- - (Optional) ``ping 10.0.99.2`` to check external IPv4 connectivity
- - (Optional) ``ping6 2000:9902`` to check external IPv6 connectivity
+ - pingall
+ - (Optional) ``ping 10.0.99.2`` to check external IPv4 connectivity
+ - (Optional) ``ping6 2000:9902`` to check external IPv6 connectivity
- Additional actions and tests defined in each individual test case
diff --git a/testing/data-plane-testing.rst b/testing/data-plane-testing.rst
index 1d8307e..9c194db 100644
--- a/testing/data-plane-testing.rst
+++ b/testing/data-plane-testing.rst
@@ -19,12 +19,12 @@
.. code-block:: console
- $ sudo apt-get install python python-pip python-dev python-lxml libffi-dev libssl-dev -y
- $ sudo pip install cryptography
- $ sudo pip install ncclient
- $ sudo pip install scapy pycrypto
- $ sudo apt-get install python-ecdsa git
- $ git clone https://gerrit.opencord.org/fabric-oftest
+ $ sudo apt-get install python python-pip python-dev python-lxml libffi-dev libssl-dev -y
+ $ sudo pip install cryptography
+ $ sudo pip install ncclient
+ $ sudo pip install scapy pycrypto
+ $ sudo apt-get install python-ecdsa git
+ $ git clone https://gerrit.opencord.org/fabric-oftest
Now let's configure the switch and point it to the test server.
It can be done in the same way as connecting the switch to any controller.
@@ -34,13 +34,13 @@
.. code-block:: console
- $ cd oftest
- $ sudo ./oft -V1.3 --test-dir=ofdpa flows.PacketInArp -i 12@eth1 -i 24@eth2
- WARNING: No route found for IPv6 destination :: (no default route?)
- flows.PacketInArp ... ok
- ----------------------------------------------------------------------
- Ran 1 test in 4.044s
- OK
+ $ cd oftest
+ $ sudo ./oft -V1.3 --test-dir=ofdpa flows.PacketInArp -i 12@eth1 -i 24@eth2
+ WARNING: No route found for IPv6 destination :: (no default route?)
+ flows.PacketInArp ... ok
+ ----------------------------------------------------------------------
+ Ran 1 test in 4.044s
+ OK
Run Tests
=========
@@ -49,35 +49,35 @@
.. code-block:: console
- $ sudo ./oft -V1.3 --test-dir=ofdpa flows -i 12@eth1 -i 24@eth2
- flows.ArpNL2 ... FAIL
- flows.L2FloodQinQ ... ok
- flows.L2FloodTagged ... ok
- flows.L2FloodTaggedUnknownSrc ... ok
- flows.L2UnicastTagged ... ok
- flows.L3McastToL2 ... FAIL
- flows.L3McastToL3 ... FAIL
- flows.L3McastToVPN ... FAIL
- flows.L3UcastTagged ... ok
- flows.L3VPNMPLS ... ok
- flows.L3VPN_32 ... FAIL
- flows.MPLSBUG ... ok
- flows.MplsTermination ... FAIL
- flows.Mtu1500 ... ok
- flows.Mtu4000 ... ERROR
- flows.PacketInArp ... ok
- flows.PacketInSrcMacMiss ... FAIL
- flows.PacketInUDP ... ok
+ $ sudo ./oft -V1.3 --test-dir=ofdpa flows -i 12@eth1 -i 24@eth2
+ flows.ArpNL2 ... FAIL
+ flows.L2FloodQinQ ... ok
+ flows.L2FloodTagged ... ok
+ flows.L2FloodTaggedUnknownSrc ... ok
+ flows.L2UnicastTagged ... ok
+ flows.L3McastToL2 ... FAIL
+ flows.L3McastToL3 ... FAIL
+ flows.L3McastToVPN ... FAIL
+ flows.L3UcastTagged ... ok
+ flows.L3VPNMPLS ... ok
+ flows.L3VPN_32 ... FAIL
+ flows.MPLSBUG ... ok
+ flows.MplsTermination ... FAIL
+ flows.Mtu1500 ... ok
+ flows.Mtu4000 ... ERROR
+ flows.PacketInArp ... ok
+ flows.PacketInSrcMacMiss ... FAIL
+ flows.PacketInUDP ... ok
For example, in this case, all the multicast failed because we don't have three ports, the test L3VPN failed as well, and that is a bug of the current build.
The **PacketInSrcMac** Miss failed because Mac learning is not enabled.
.. note::
- Expected test results can be found in https://github.com/opencord/fabric-oftest/blob/master/README.md
+ Expected test results can be found in https://github.com/opencord/fabric-oftest/blob/master/README.md
.. tip::
- OFTest can't successfully delete all groups using an OF message, because of that some tests interfere with others.
- If the results seem suspicious, **erase the flow tables and group tables** and run the test alone.
+ OFTest can't successfully delete all groups using an OF message, because of that some tests interfere with others.
+ If the results seem suspicious, **erase the flow tables and group tables** and run the test alone.