2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-27 04:18:00 +00:00

29 Commits

Author SHA1 Message Date
Russell Bryant
3656109018 ovs-sandbox: Add support for ovn-controller-vtep.
When ovs-sandbox is run with ovn enabled, create the vtep database and
run ovn-controller-vtep.  This lets you do some basic testing with
ovn-controller-vtep.  For example:

    $ make sandbox SANDBOXFLAGS="--ovn"
    $ vtep-ctl add-ps ps0

After those commands, you can see that ovn-controller-vtep added a
Chassis row to OVN_Southbound for the physical switch.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2015-08-21 15:18:38 -07:00
Alex Wang
5b5c922b0c ovn-nbctl: Move ovn-nbctl to utilities directory.
Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
2015-08-08 09:49:34 -07:00
Russell Bryant
2c6bcfa261 ovs-sandbox: Fix ovn support.
The last merge from master broke ovs-sandbox OVN support.  The rungdb
function now takes an additional argument for whether or not the
daemon should be automatically started under gdb.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2015-05-15 09:27:45 -07:00
Justin Pettit
f2d371f7f6 Merge "master" into "ovn".
This brings in STT.

Conflicts:
	tutorial/ovs-sandbox
2015-05-07 16:52:06 -07:00
Ben Pfaff
a42226f0a5 ovs-architecture: Recommend disable-in-band=true for integration bridge.
Also implement in ovs-sandbox.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
2015-05-05 17:21:06 -07:00
Ben Pfaff
f00355664d ovs-sandbox: Use "secure" mode for br-int, in OVN mode.
This is documented in ovn-architecture(7).

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
2015-05-05 17:21:05 -07:00
Justin Pettit
b705f9ea60 ovn: Constrain supported tunnel types.
Limit the supported tunnel types to Geneve and STT on hypervisors, and
VXLAN, Geneve, and STT on gateways.  This commit adds "DESIGN.md" that
describes the reasoning.

Wes Felter provided suggestions for improving the wording in the
architecture document.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
2015-04-30 23:08:43 -07:00
Russell Bryant
91ae206597 ovn: Rename ovn-nbd to ovn-northd.
It came up in a recent discussion that the use of 'nbd' could cause
confusion since nbd is used for "Network Block Device", which may be
used in many of the same environments that OVN would be used in.

To avoid the possible issue, just rename ovn-nbd to ovn-northd.
While we're at it, create a subdirectory under ovn/ to hold all files
related to ovn-northd.  For now it's just a single C file, but we
may add more source files in the future.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2015-04-16 16:47:58 -07:00
Andy Zhou
60ceeb6c16 ovs-sandbox: add '-r' and '-e' options
'-e' option will run ovs-vswitchd under gdb, but runs immediately
instead of waiting for user input. '-r' options applies to ovsdb-server.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
2015-04-14 14:53:45 -07:00
Andy Zhou
e43a07ba6e ovs-sandbox: add delay before running ovs-vsctl
When running ovsdb-server under gdb, there is a race that ovs-vsctl
command can be called before ovsdb-server is fully launched. This will
cause ovs-vsctl to fail.  This patch fixes this by delay issuing
the ovs-vsctl command until ovsdb-server is fully launched.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Ben Pfaff <blp@nicira.com>
2015-04-14 14:52:34 -07:00
Justin Pettit
daaeeec0bd Merge remote-tracking branch 'origin/master' into ovn
Conflicts:
	tutorial/ovs-sandbox
2015-04-12 10:13:59 -07:00
Justin Pettit
717c7fc508 ovn: Introduce ovn-controller.
Add new ovn-controller daemon that runs locally on transport nodes.
This initial version registers itself in the Chassis table and registers
logical ports to the appropriate rows in the Bindings table.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
2015-04-12 10:11:06 -07:00
Justin Pettit
1369720c6c ovs-sandbox: Use new ovn-sb database name.
Commit ec78987 (ovn: Rename "ovn" database to "ovn-sb".) changed the
name of the database, but didn't update ovs-sandbox to use this new
name.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
2015-04-09 12:39:09 -07:00
Russell Bryant
fdc14c7b33 ovs-sandbox: Tell gdb to start the daemon.
The current gdb support launches gdb but doesn't start the daemon.
If you start ovsdb-server with gdb, ovs-sandbox produces an error as
it tries to run ovs-vsctl before ovsdb-server is running.  Telling gdb
to start the daemon immediately avoids this error.

There are cases where it's useful to go straight to the gdb prompt,
too.  For example, someone may want to set a breakpoint.  In that
case, it's easy enough to just kill it, set a breakpoint, and execute
'run' again.

In passing, fix indentation to use spaces instead of tabs.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2015-04-05 12:15:22 -07:00
Russell Bryant
30a678667a ovs-sandbox: Add support for ovn-nbd.
Update ovs-sandbox to run ovn-nbd when it is run with OVN enabled.  In
passing, also fix the indentation of two lines to use spaces instead
of tabs.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2015-04-02 08:53:45 -07:00
Ben Pfaff
6b2771c347 ovs-sandbox: Initialize database before starting ovs-vswitchd.
Otherwise ovs-vswitchd can't immediately start working (until some other
call to ovs-vsctl initializes the database).  This is most obvious if one
runs "ovs-vsctl list Open_vSwitch ." as the first command, because the
output will not show the changes that ovs-vswitchd will make to the
database at startup (in particular initializing datapath_types and
iface_types), which is confusing.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
2015-03-27 08:38:27 -07:00
Russell Bryant
ff358c710c ovs-sandbox: add initial support for ovn
This patch adds initial support for OVN to ovs-sandbox.  If you pass
"-o/--ovn" to ovs-sandbox, it will create a db from the ovn and ovn-nb
schemas and tell ovsdb-server to use them.  It also adds ovn/ to $PATH
so that as ovn executables are added, they will be available in the
sandbox.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2015-03-12 13:59:09 -07:00
Andy Zhou
4b814d41b8 ovs-sandbox: Add -d option to run ovsdb-server under GDB
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
2015-02-22 16:59:03 -08:00
Andy Zhou
4cf272aaf6 ovs-sandbox: Show the running program on xterm's title
When debugging multiple programs under GDB, it will be easier to
identify xterms with the program name displayed as title. Without
this patch, xterms will have the title of "gdb", which is the first
program the xterm executes. This change is useful for the next patch.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
2015-02-22 16:58:56 -08:00
Andy Zhou
8da7cd8c8f ovs-sandbox: Add an option to allow running ovs-vswitchd under gdb
It is some times useful to leverage the sandbox facility to experiment
and explore the internals of ovs-vswitchd.  Since GDB requires console
access for user inputs, this patch launch an xterm for GDB, The main
terminal continue to run the sub-shell as before. Exiting the sub-shell
will also kill the ovs-vswitchd under GDB (but not GDB itself currently)

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
2015-02-19 13:57:52 -08:00
Thomas Graf
a0ddac4bf3 doc: Fix up markdown syntax in tutorial/Tutorial.md
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2014-12-05 10:35:48 -08:00
Ben Pfaff
4441a01cbd dist-docs: New utility to generate a documentation bundle for the website.
This utility isn't going to be as portable as most of the Open vSwitch
utilities, unfortunately.  I'm happy to take improvements to make it
able to work with, e.g., the "man" program from BSD.  (I haven't tested
with that program, but I suspect that it is somewhat different from the
GNU version.)

The output of this program can already be viewed at:
	http://openvswitch.org/support/dist-docs/

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Thomas Graf <tgraf@noironetworks.com>
2014-12-02 11:04:16 -08:00
Thomas Graf
9feb1017c5 doc: Add more cross references between docs
Suggested-by: Lori Jakab <lojakab@cisco.com>
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
Reviewed-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2014-10-30 08:17:16 -07:00
Thomas Graf
542cc9bb8b doc: Convert docs to Markdown language
Converts the majority of docs over to use the Markdown language for
pretty printing on GitHub. It's a rough first convertion without
exploiting the full potential of Markdown at this point. Section
titles and indentation are fixed as needed. Minimal docs interlinking
is added.

Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2014-10-28 08:55:18 -07:00
YAMAMOTO Takashi
348f828214 ovs-sandbox: Use the correct make
On some platforms including NetBSD,
GNU make is usually installed as "gmake".

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Acked-by: Ben Pfaff <blp@nicira.com>
2014-06-05 02:06:17 +09:00
Ben Pfaff
f0ac9da996 packets: Fix typo in reserved multicast Ethernet addresses.
The reserved multicast Ethernet addresses begin with 01:80:c2, not
01:08:c2.

Reported-by: Padmanabhan Krishnan <kprad1@yahoo.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
2013-06-05 09:44:32 -07:00
Duffie Cooley
431ad53564 ovs-sandbox: Use $schema for creating the db.
The code here went to some trouble to properly set $schema and then
ignored it.

Signed-off-by: Duffie Cooley <dcooley@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-05-01 12:24:05 -07:00
Ben Pfaff
4ff8998c5c tutorial: Correct typos.
Reported-by: Yeming Zhao <zhaoyeming@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-04-22 21:17:50 -07:00
Ben Pfaff
eeecce05e1 Add a tutorial for advanced Open vSwitch features.
Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-04-19 16:26:24 -07:00