Skip to content

Commit

Permalink
doc: Populate 'tutorials' section
Browse files Browse the repository at this point in the history
Rename 'tutorial' to 'ovs-advanced' and 'ovn-tutorial' to 'ovn-basics'.

Signed-off-by: Stephen Finucane <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
stephenfin authored and blp committed Dec 12, 2016
1 parent 7c9afef commit e12569b
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 23 deletions.
2 changes: 2 additions & 0 deletions Documentation/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ EXTRA_DIST += \
Documentation/intro/install/windows.rst \
Documentation/intro/install/xenserver.rst \
Documentation/tutorials/index.rst \
Documentation/tutorials/ovn-basics.rst \
Documentation/tutorials/ovs-advanced.rst \
Documentation/topics/index.rst \
Documentation/topics/bonding.rst \
Documentation/topics/datapath.rst \
Expand Down
3 changes: 2 additions & 1 deletion Documentation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ vSwitch? Start here.
:doc:`intro/install/xenserver` |
:doc:`intro/install/dpdk`

- **Tutorials:** **TODO**
- **Tutorials:** :doc:`tutorials/ovs-advanced` |
:doc:`tutorials/ovn-basics`

Deeper Dive
-----------
Expand Down
9 changes: 9 additions & 0 deletions Documentation/tutorials/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,14 @@ Tutorials
Getting started with Open vSwitch (OVS) and Open Virtual Network (OVN) for Open
vSwitch.

.. TODO(stephenfin): We could really do with a few basic tutorials, along with
some more specialized ones (DPDK, XenServer, Windows). The latter could
probably be formed from the install guides, but the former will need to be
produced from scratch or reproduced from blogs (with permission of the
author)
.. toctree::
:maxdepth: 2

ovs-advanced
ovn-basics
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

Avoid deeper levels because they do not render well.

============
OVN Tutorial
============
==========
OVN Basics
==========

This tutorial is intended to give you a tour of the basic OVN features using
``ovs-sandbox`` as a simulated test environment. It's assumed that you have an
Expand Down Expand Up @@ -873,12 +873,10 @@ of what the resulting OpenFlow flows look like.
Container Ports
---------------

.. TODO(stephenfin): Update Docker link when this is moved.
OVN supports containers running directly on the hypervisors and running
containers inside VMs. This example shows how OVN supports network
virtualization to containers when run inside VMs. Details about how to use
docker containers in OVS can be found in the `Docker installlation guide`.
docker containers in OVS can be found in :doc:`/howto/docker`.

To support container traffic created inside a VM and to distinguish network
traffic coming from different container vifs, for each container a logical port
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

Avoid deeper levels because they do not render well.

=======================================
Open vSwitch Advanced Features Tutorial
=======================================
==============================
Open vSwitch Advanced Features
==============================

Many tutorials cover the basics of OpenFlow. This is not such a tutorial.
Rather, a knowledge of the basics of OpenFlow is a prerequisite. If you do not
Expand Down Expand Up @@ -54,18 +54,16 @@ hardware or even supervisor privilege on your system. Instead, we will use a
script called ``ovs-sandbox``, which accompanies the tutorial, that constructs
a software simulated network environment based on Open vSwitch.

.. TODO(stephenfin): Update installation guide link when this is moved.
You can use ``ovs-sandbox`` three ways:

* If you have already installed Open vSwitch on your system, then you should be
able to just run ``ovs-sandbox`` from this directory without any options.

* If you have not installed Open vSwitch (and you do not want to install it),
then you can build Open vSwitch according to the instructions in the
`installation guide`, without installing it. Then run ``./ovs-sandbox -b
DIRECTORY`` from this directory, substituting the Open vSwitch build
directory for ``DIRECTORY``.
then you can build Open vSwitch according to the instructions in
:doc:`/intro/install/general`, without installing it. Then run
``./ovs-sandbox -b DIRECTORY`` from this directory, substituting the Open
vSwitch build directory for ``DIRECTORY``.

* As a slight variant on the latter, you can run ``make sandbox`` from an Open
vSwitch build directory.
Expand Down
2 changes: 1 addition & 1 deletion FAQ.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,7 @@ Q: The "learn" action can't learn the action I want, can you improve it?
http://openvswitch.org/pipermail/discuss/2016-June/021694.html

- MAC learning in the middle of a pipeline, as described in `the tutorial
<tutorial/tutorial.rst>`__.
<Documentation/tutorials/ovs-advanced.rst>`__.

- TCP state based firewalling, by learning outgoing connections based on
SYN packets and matching them up with incoming packets.
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ installation guides <Documentation/intro/install/index.rst>`__
For answers to common questions, refer to the `FAQ <FAQ.rst>`__.

To learn about some advanced features of the Open vSwitch software switch, read
the `tutorial <tutorial/tutorial.rst>`__.
the `tutorial <Documentation/tutorials/ovs-advanced.rst>`__.

Each Open vSwitch userspace program is accompanied by a manpage. Many of the
manpages are customized to your configuration as part of the build process, so
Expand Down
3 changes: 0 additions & 3 deletions tutorial/automake.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
docs += \
tutorial/tutorial.rst \
tutorial/ovn-tutorial.rst
EXTRA_DIST += \
tutorial/ovs-sandbox \
tutorial/t-setup \
Expand Down
2 changes: 1 addition & 1 deletion tutorial/ovn/env1/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#

#
# See "Simple two-port setup" in tutorial/ovn-tutorial.rst.
# See "Simple two-port setup" in Documentation/tutorial/ovn-basics.rst.
#

set -o xtrace
Expand Down
2 changes: 1 addition & 1 deletion tutorial/ovn/env6/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#

#
# See "Simple two-port setup" in tutorial/ovn-tutorial.rst.
# See "Simple two-port setup" in Documentation/tutorial/ovn-basics.rst.
#

set -o xtrace
Expand Down

0 comments on commit e12569b

Please sign in to comment.