udp: Use udp_output_get_connection instead of udp_connection_get
[vpp.git] / test / vpp_pg_interface.py
index 2682774..0fd5df4 100644 (file)
@@ -1,4 +1,5 @@
 import os
+import shutil
 import socket
 from socket import inet_pton, inet_ntop
 import struct
@@ -168,7 +169,7 @@ class VppPGInterface(VppInterface):
                     filename,
                 )
                 self.test.logger.debug("Renaming %s->%s" % (path, name))
-                os.rename(path, name)
+                shutil.move(path, name)
         except OSError:
             self.test.logger.debug("OSError: Could not rename %s %s" % (path, filename))