From 898123cb10b80020622e39085d0f084df38a571f Mon Sep 17 00:00:00 2001 From: Marek Wolan Date: Tue, 19 Sep 2023 11:46:02 +0100 Subject: [PATCH] Stub out more actions --- src/primaite/simulator/file_system/file_system.py | 3 +++ src/primaite/simulator/network/hardware/base.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/primaite/simulator/file_system/file_system.py b/src/primaite/simulator/file_system/file_system.py index cbe30c96..91e98b35 100644 --- a/src/primaite/simulator/file_system/file_system.py +++ b/src/primaite/simulator/file_system/file_system.py @@ -339,6 +339,8 @@ class Folder(FileSystemItemABC): am.add_action("checkhash", Action(func=lambda request, context: ...)) # TODO implement action am.add_action("repair", Action(func=lambda request, context: ...)) # TODO implement action am.add_action("restore", Action(func=lambda request, context: ...)) # TODO implement action + am.add_action("delete", Action(func=lambda request, context: ...)) # TODO implement action + am.add_action("corrupt", Action(func=lambda request, context: ...)) # TODO implement action return am @@ -515,6 +517,7 @@ class File(FileSystemItemABC): am.add_action("delete", Action(func=lambda request, context: ...)) # TODO implement action am.add_action("repair", Action(func=lambda request, context: ...)) # TODO implement action am.add_action("restore", Action(func=lambda request, context: ...)) # TODO implement action + am.add_action("corrupt", Action(func=lambda request, context: ...)) # TODO implement action return am diff --git a/src/primaite/simulator/network/hardware/base.py b/src/primaite/simulator/network/hardware/base.py index c346ddf5..a14d6a6d 100644 --- a/src/primaite/simulator/network/hardware/base.py +++ b/src/primaite/simulator/network/hardware/base.py @@ -966,6 +966,8 @@ class Node(SimComponent): am.add_action("shutdown", Action(func=lambda request, context: self.power_off())) am.add_action("startup", Action(func=lambda request, context: self.power_on())) am.add_action("reset", Action(func=lambda request, context: ...)) # TODO implement node reset + am.add_action("logon", Action(func=lambda request, context: ...)) # TODO implement logon action + am.add_action("logoff", Action(func=lambda request, context: ...)) # TODO implement logoff action return am