from robot.api import logger
+from resources.libraries.python.ssh import SSH
from resources.libraries.python.HTTPRequest import HTTPRequest
from resources.libraries.python.constants import Constants as Const
base_path = HoneycombUtil.read_path_from_url_file(url_file)
path = base_path + path
return HTTPRequest.delete(node, path)
+
+ @staticmethod
+ def archive_honeycomb_log(node, perf=False):
+ """Copy honeycomb log file from DUT node to VIRL for archiving.
+
+ :param node: Honeycomb node.
+ :param perf: Alternate handling, for use with performance test topology.
+ :type node: dict
+ :type perf: bool
+ """
+
+ ssh = SSH()
+ ssh.connect(node)
+
+ if not perf:
+ cmd = "cp /var/log/honeycomb/honeycomb.log /scratch/"
+ ssh.exec_command_sudo(cmd)
+ else:
+ ssh.scp(
+ ".",
+ "/var/log/honeycomb/honeycomb.log",
+ get=True)