[ovs-dev,v3,ovn,1/3] ovn-detrace: Fix rundir.
diff mbox series

Message ID 20191112164728.7712.43242.stgit@dceara.remote.csb
State Superseded
Headers show
Series
  • Improve ovn-detrace support for parsing OpenFlow cookies.
Related show

Commit Message

Dumitru Ceara Nov. 12, 2019, 4:47 p.m. UTC
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.

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

Patch
diff mbox series

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')