diff options
author | Russell Bryant <russell@ovn.org> | 2017-08-10 16:18:06 -0400 |
---|---|---|
committer | Russell Bryant <russell@ovn.org> | 2017-08-10 17:08:21 -0400 |
commit | 0b31b69fea1b86dee71e292342ec607ff5821e31 (patch) | |
tree | 5b5189726c416e7e437a018f9b246400378c6b0e | |
parent | 2904883c27a5804c8377363c2706e6842c6bf3c7 (diff) | |
download | openvswitch-0b31b69fea1b86dee71e292342ec607ff5821e31.tar.gz |
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 <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
-rwxr-xr-x | tutorial/ovn-setup.sh | 8 |
1 files changed, 8 insertions, 0 deletions
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 |