Skip to content

Commit e12569b

Browse files
stephenfinblp
authored andcommitted
doc: Populate 'tutorials' section
Rename 'tutorial' to 'ovs-advanced' and 'ovn-tutorial' to 'ovn-basics'. Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Ben Pfaff <blp@ovn.org>
1 parent 7c9afef commit e12569b

File tree

10 files changed

+28
-23
lines changed

10 files changed

+28
-23
lines changed

Documentation/automake.mk

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ EXTRA_DIST += \
2020
Documentation/intro/install/windows.rst \
2121
Documentation/intro/install/xenserver.rst \
2222
Documentation/tutorials/index.rst \
23+
Documentation/tutorials/ovn-basics.rst \
24+
Documentation/tutorials/ovs-advanced.rst \
2325
Documentation/topics/index.rst \
2426
Documentation/topics/bonding.rst \
2527
Documentation/topics/datapath.rst \

Documentation/index.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ vSwitch? Start here.
5555
:doc:`intro/install/xenserver` |
5656
:doc:`intro/install/dpdk`
5757

58-
- **Tutorials:** **TODO**
58+
- **Tutorials:** :doc:`tutorials/ovs-advanced` |
59+
:doc:`tutorials/ovn-basics`
5960

6061
Deeper Dive
6162
-----------

Documentation/tutorials/index.rst

+9
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,14 @@ Tutorials
3030
Getting started with Open vSwitch (OVS) and Open Virtual Network (OVN) for Open
3131
vSwitch.
3232

33+
.. TODO(stephenfin): We could really do with a few basic tutorials, along with
34+
some more specialized ones (DPDK, XenServer, Windows). The latter could
35+
probably be formed from the install guides, but the former will need to be
36+
produced from scratch or reproduced from blogs (with permission of the
37+
author)
38+
3339
.. toctree::
3440
:maxdepth: 2
41+
42+
ovs-advanced
43+
ovn-basics

tutorial/ovn-tutorial.rst Documentation/tutorials/ovn-basics.rst

+4-6
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
Avoid deeper levels because they do not render well.
2323

24-
============
25-
OVN Tutorial
26-
============
24+
==========
25+
OVN Basics
26+
==========
2727

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

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

883881
To support container traffic created inside a VM and to distinguish network
884882
traffic coming from different container vifs, for each container a logical port

tutorial/tutorial.rst Documentation/tutorials/ovs-advanced.rst

+7-9
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
Avoid deeper levels because they do not render well.
2323

24-
=======================================
25-
Open vSwitch Advanced Features Tutorial
26-
=======================================
24+
==============================
25+
Open vSwitch Advanced Features
26+
==============================
2727

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

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

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

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

7068
* As a slight variant on the latter, you can run ``make sandbox`` from an Open
7169
vSwitch build directory.

FAQ.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ Q: The "learn" action can't learn the action I want, can you improve it?
20342034
http://openvswitch.org/pipermail/discuss/2016-June/021694.html
20352035

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

20392039
- TCP state based firewalling, by learning outgoing connections based on
20402040
SYN packets and matching them up with incoming packets.

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ installation guides <Documentation/intro/install/index.rst>`__
8484
For answers to common questions, refer to the `FAQ <FAQ.rst>`__.
8585

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

8989
Each Open vSwitch userspace program is accompanied by a manpage. Many of the
9090
manpages are customized to your configuration as part of the build process, so

tutorial/automake.mk

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
docs += \
2-
tutorial/tutorial.rst \
3-
tutorial/ovn-tutorial.rst
41
EXTRA_DIST += \
52
tutorial/ovs-sandbox \
63
tutorial/t-setup \

tutorial/ovn/env1/setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
#
17-
# See "Simple two-port setup" in tutorial/ovn-tutorial.rst.
17+
# See "Simple two-port setup" in Documentation/tutorial/ovn-basics.rst.
1818
#
1919

2020
set -o xtrace

tutorial/ovn/env6/setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515

1616
#
17-
# See "Simple two-port setup" in tutorial/ovn-tutorial.rst.
17+
# See "Simple two-port setup" in Documentation/tutorial/ovn-basics.rst.
1818
#
1919

2020
set -o xtrace

0 commit comments

Comments
 (0)