[ovs-dev] [PATCH v4 ovn 1/3] ovn-detrace: Fix rundir.

Dumitru Ceara dceara at redhat.com
Wed Nov 13 09:52:01 UTC 2019


After the separation of OVS and OVN rundirs, the ovn-detrace script
hasn't been updated to use the OVN rundir instead of the OVS one.

Acked-by: Mark Michelson <mmichels at redhat.com>
Signed-off-by: Dumitru Ceara <dceara at redhat.com>
---
 utilities/ovn-detrace.in |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/utilities/ovn-detrace.in b/utilities/ovn-detrace.in
index c842adc..9471e37 100755
--- a/utilities/ovn-detrace.in
+++ b/utilities/ovn-detrace.in
@@ -169,16 +169,16 @@ def main():
                          "(use --help for help)\n" % argv0)
         sys.exit(1)
 
-    ovs_rundir = os.getenv('OVS_RUNDIR', '@RUNDIR@')
+    ovn_rundir = os.getenv('OVN_RUNDIR', '@OVN_RUNDIR@')
     if not ovnsb_db:
         ovnsb_db = os.getenv('OVN_SB_DB')
         if not ovnsb_db:
-            ovnsb_db = 'unix:%s/ovnsb_db.sock' % ovs_rundir
+            ovnsb_db = 'unix:%s/ovnsb_db.sock' % ovn_rundir
 
     if not ovnnb_db:
         ovnnb_db = os.getenv('OVN_NB_DB')
         if not ovnnb_db:
-            ovnnb_db = 'unix:%s/ovnnb_db.sock' % ovs_rundir
+            ovnnb_db = 'unix:%s/ovnnb_db.sock' % ovn_rundir
 
     ovsdb_ovnsb = OVSDB(ovnsb_db, 'OVN_Southbound')
     ovsdb_ovnnb = OVSDB(ovnnb_db, 'OVN_Northbound')



More information about the dev mailing list