From bd3f71c4469ce173a07f44ecada85025ff761767 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 29 May 2018 15:13:48 +0200 Subject: testbeds: Allow locally fetching files This simply allows to locally fetch a file, which is handy for debugging purposes, for instance obtaining flow stats from the Ouroboros prototype. --- rumba/executors/local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rumba/executors/local.py b/rumba/executors/local.py index 455b05c..d0ebc56 100644 --- a/rumba/executors/local.py +++ b/rumba/executors/local.py @@ -27,6 +27,7 @@ from rumba import model as mod import subprocess +from shutil import copy from rumba import log @@ -46,8 +47,7 @@ class LocalExecutor(mod.Executor): raise def fetch_file(self, node, path, destination, as_root=False): - logger.error("Fetch_file not supported for local testbed") - raise + copy(path, destination) def copy_file(self, node, path, destination): logger.error("Copy_file not supported for local testbed") -- cgit v1.2.3