Skip to content

Commit

Permalink
sandbox: Add ports to br-int in ovn-setup.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
russellb committed Aug 10, 2017
1 parent 2904883 commit 0b31b69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tutorial/ovn-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0b31b69

Please sign in to comment.