Modified kid-control switches to block/unblock traffic #70

This commit is contained in:
tomaae 2020-12-28 01:26:46 +01:00
parent 1bdd8e81f6
commit 7dc9120b19
3 changed files with 80 additions and 6 deletions

View file

@ -304,6 +304,13 @@ class MikrotikControllerData:
"""Change value using Mikrotik API"""
return self.api.update(path, param, value, mod_param, mod_value)
# ---------------------------
# execute
# ---------------------------
def execute(self, path, command, param, value):
"""Change value using Mikrotik API"""
return self.api.execute(path, command, param, value)
# ---------------------------
# run_script
# ---------------------------
@ -924,6 +931,7 @@ class MikrotikControllerData:
{"name": "sat", "default": "None"},
{"name": "sun", "default": "None"},
{"name": "comment"},
{"name": "paused", "type": "bool", "reverse": True},
{
"name": "enabled",
"source": "disabled",