From 490a4acf24ad39fbbc517417200d85322d5953b7 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Sat, 5 Feb 2022 00:46:25 -0800 Subject: [PATCH] daemon: fixed issues related to rj45 --- daemon/core/nodes/physical.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/daemon/core/nodes/physical.py b/daemon/core/nodes/physical.py index 4dd5fb57..5c1cfe2e 100644 --- a/daemon/core/nodes/physical.py +++ b/daemon/core/nodes/physical.py @@ -233,7 +233,7 @@ class Rj45Node(CoreNodeBase): """ super().__init__(session, _id, name, server) self.iface: CoreInterface = CoreInterface( - session, self, name, name, mtu, server + session, name, name, mtu, server, self ) self.iface.transport_type = TransportType.RAW self.lock: threading.RLock = threading.RLock() @@ -438,3 +438,12 @@ class Rj45Node(CoreNodeBase): def cmd(self, args: str, wait: bool = True, shell: bool = False) -> str: raise CoreError("rj45 does not support cmds") + + def create_dir(self, dir_path: Path) -> None: + raise CoreError("rj45 does not support creating directories") + + def create_file(self, file_path: Path, contents: str, mode: int = 0o644) -> None: + raise CoreError("rj45 does not support creating files") + + def copy_file(self, src_path: Path, dst_path: Path, mode: int = None) -> None: + raise CoreError("rj45 does not support copying files")