From 0b31b69fea1b86dee71e292342ec607ff5821e31 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 10 Aug 2017 16:18:06 -0400 Subject: sandbox: Add ports to br-int in ovn-setup. 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 Acked-by: Ben Pfaff --- tutorial/ovn-setup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tutorial') 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 -- cgit v1.2.1