summaryrefslogtreecommitdiff
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:50 -0800
commitd5746be5b4f691f73d09c477a2ba965a0f29c4ef (patch)
tree44b29a58fee28c5d924dfbc0a7812e5867976461
parent8605d1fc3a949724527d2b1762131e2743f6c54b (diff)
downloadopenvswitch-d5746be5b4f691f73d09c477a2ba965a0f29c4ef.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>
-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 b6d338de5..838bb7a56 100755
--- a/ovn/utilities/ovn-ctl
+++ b/ovn/utilities/ovn-ctl
@@ -220,7 +220,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