summaryrefslogtreecommitdiff
path: root/ovn
diff options
context:
space:
mode:
authorTed Elhourani <ted.elhourani@nutanix.com>2019-02-15 00:59:57 +0000
committerBen Pfaff <blp@ovn.org>2019-02-14 20:08:19 -0800
commita62a96099186d5f369ba8c5faa088e432db60fcd (patch)
tree737632743896c268129764c9015ae4141db95183 /ovn
parentcda1b109c296ac7a8931ce374081bb54eee7aa10 (diff)
downloadopenvswitch-a62a96099186d5f369ba8c5faa088e432db60fcd.tar.gz
Initialize the right database.
Use value of db parameter in order to initialize the correct database. Signed-off-by: Ted Elhourani <ted.elhourani@nutanix.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovn')
-rwxr-xr-xovn/utilities/ovn-ctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/ovn/utilities/ovn-ctl b/ovn/utilities/ovn-ctl
index 1e369b1f5..f1297a262 100755
--- a/ovn/utilities/ovn-ctl
+++ b/ovn/utilities/ovn-ctl
@@ -222,7 +222,7 @@ $cluster_remote_port
# Initialize the database if it's running standalone,
# active-passive, or is the first server in a cluster.
if test -z "$cluster_remote_addr"; then
- ovn-nbctl init
+ ovn-${db}ctl init
fi
if test $mode = cluster; then