diff options
author | Justin Pettit <jpettit@nicira.com> | 2015-04-09 00:52:43 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2015-04-12 10:11:06 -0700 |
commit | 717c7fc508044d08210c686c1e8576c29a108f86 (patch) | |
tree | 9de562dadd84cc76008a3f71653fb19d9d4068f5 /tutorial | |
parent | a0149f4776b6a7e607cba6fb5134e0db1a0d7616 (diff) | |
download | openvswitch-717c7fc508044d08210c686c1e8576c29a108f86.tar.gz |
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>
Diffstat (limited to 'tutorial')
-rwxr-xr-x | tutorial/ovs-sandbox | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tutorial/ovs-sandbox b/tutorial/ovs-sandbox index c299de073..9e8ead004 100755 --- a/tutorial/ovs-sandbox +++ b/tutorial/ovs-sandbox @@ -45,6 +45,7 @@ rungdb() { gdb_vswitchd=false gdb_ovsdb=false gdb_ovn_nbd=false +gdb_ovn_controller=false builddir= srcdir= schema= @@ -94,6 +95,7 @@ These options force ovs-sandbox to use an installed Open vSwitch: -g, --gdb-vswitchd run ovs-vswitchd under gdb -d, --gdb-ovsdb run ovsdb-server under gdb --gdb-ovn-nbd run ovn-nbd under gdb + --gdb-ovn-controller run ovn-controller under gdb -S, --schema=FILE use FILE as vswitch.ovsschema -o, --ovn enable OVN @@ -139,6 +141,9 @@ EOF --gdb-ovn-nbd) gdb_ovn_nbd=true ;; + --gdb-ovn-controller) + gdb_ovn_controller=true + ;; -o|--ovn) ovn=true ;; @@ -212,7 +217,7 @@ if $built; then fi PATH=$builddir/ovsdb:$builddir/vswitchd:$builddir/utilities:$PATH if $ovn; then - PATH=$builddir/ovn:$PATH + PATH=$builddir/ovn:$builddir/ovn/controller:$PATH fi export PATH else @@ -279,7 +284,14 @@ rungdb $gdb_vswitchd ovs-vswitchd --detach --no-chdir --pidfile -vconsole:off -- --enable-dummy=override -vvconn -vnetdev_dummy if $ovn; then + ovs-vsctl set open . external-ids:system-id=56b18105-5706-46ef-80c4-ff20979ab068 + ovs-vsctl set open . external-ids:ovn-remote=unix:"$sandbox"/db.sock + ovs-vsctl set open . external-ids:ovn-encap-type=vxlan + ovs-vsctl set open . external-ids:ovn-encap-ip=127.0.0.1 + ovs-vsctl add-br br-int + rungdb $gdb_ovn_nbd ovn-nbd --detach --no-chdir --pidfile -vconsole:off --log-file + rungdb $gdb_ovn_controller ovn-controller --detach --no-chdir --pidfile -vconsole:off --log-file fi cat <<EOF |