[ovs-dev] [PATCH] sandbox: Add ports to br-int in ovn-setup.

Russell Bryant russell at ovn.org
Thu Aug 10 20:20:23 UTC 2017


ovs-sandbox comes with a script to quickly set up a simple
OVN configuration, ovn-setup.sh.  This script set up config in the OVN
northbound database, but didn't create the corresponding ports on
br-int.  Add that to save another step in provisioning this simple
environment.

Add "ovn-sbctl show" output as well, to follow the existing "ovn-nbctl
show" output.

Signed-off-by: Russell Bryant <russell at ovn.org>
---
 tutorial/ovn-setup.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tutorial/ovn-setup.sh b/tutorial/ovn-setup.sh
index dc4c813b1..943ca58ed 100755
--- a/tutorial/ovn-setup.sh
+++ b/tutorial/ovn-setup.sh
@@ -23,5 +23,13 @@ ovn-nbctl lsp-set-type lrp1-attachment router
 ovn-nbctl lsp-set-addresses lrp1-attachment 00:00:00:00:ff:02
 ovn-nbctl lsp-set-options lrp1-attachment router-port=lrp1
 
+ovs-vsctl add-port br-int p1 -- \
+    set Interface p1 external_ids:iface-id=sw0-port1
+ovs-vsctl add-port br-int p2 -- \
+    set Interface p2 external_ids:iface-id=sw1-port1
+
 # View a summary of the configuration
+printf "\n=== ovn-nbctl show ===\n\n"
 ovn-nbctl show
+printf "\n=== ovn-sbctl show ===\n\n"
+ovn-sbctl show
-- 
2.13.4



More information about the dev mailing list