[ovs-dev] [PATCH] tutorial: skip passing .db for backup option for ovn_start_ovsdb_server:

aginwala amginwal at gmail.com
Thu Apr 12 00:43:01 UTC 2018


current params uses two sb1.db which is redundant:
e.g. ovsdb-server --remote=punix:sb1.ovsdb sb1.db sb1.db
expected:
e.g. ovsdb-server --remote=punix:sb1.ovsdb sb1.db

tested and works as expected:
ovn-sbctl --db=unix:/root/ovs/tutorial/sandbox/sb2.ovsdb show
Chassis "chassis-1"
    hostname: sandbox
    Encap geneve
        ip: "127.0.0.1"
        options: {csum="true"}

Signed-off-by: aginwala <aginwala at ebay.com>
---
 tutorial/ovs-sandbox | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tutorial/ovs-sandbox b/tutorial/ovs-sandbox
index 7a9c195..feba578 100755
--- a/tutorial/ovs-sandbox
+++ b/tutorial/ovs-sandbox
@@ -436,7 +436,7 @@ if $ovn; then
                 for i in 1 2; do
                     run ovsdb-tool create $db$i.db "$schema"
                 done
-                ovn_start_ovsdb_server 1 ${db}1.db
+                ovn_start_ovsdb_server 1
                 ovn_start_ovsdb_server 2 --sync-from=unix:${db}1.ovsdb
                 remote=unix:${db}1.ovsdb
                 backup_note="$backup_note
-- 
1.9.1



More information about the dev mailing list