summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-05-25 19:39:30 -0500
committerGitHub <noreply@github.com>2022-05-25 19:39:30 -0500
commite25afbf4a589e472d13310d8a84cc925ee8473bf (patch)
treec54815ed9af1986e67a97e1ff16cb789dec1c260 /python/vyos
parent7c1cb045ebbfb84668c703dba6c48af60fdcc788 (diff)
parent45f460a20c0bdcd05d72eda3286b2b6980998fe4 (diff)
downloadvyos-1x-e25afbf4a589e472d13310d8a84cc925ee8473bf.tar.gz
vyos-1x-e25afbf4a589e472d13310d8a84cc925ee8473bf.zip
Merge pull request #1333 from sever-sever/T4442
http-api: T4442: Add action reset
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/configsession.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/vyos/configsession.py b/python/vyos/configsession.py
index f28ad09c5..3a60f6d92 100644
--- a/python/vyos/configsession.py
+++ b/python/vyos/configsession.py
@@ -33,6 +33,7 @@ INSTALL_IMAGE = ['/opt/vyatta/sbin/install-image', '--url']
REMOVE_IMAGE = ['/opt/vyatta/bin/vyatta-boot-image.pl', '--del']
GENERATE = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'generate']
SHOW = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'show']
+RESET = ['/opt/vyatta/bin/vyatta-op-cmd-wrapper', 'reset']
# Default "commit via" string
APP = "vyos-http-api"
@@ -200,3 +201,6 @@ class ConfigSession(object):
out = self.__run_command(SHOW + path)
return out
+ def reset(self, path):
+ out = self.__run_command(RESET + path)
+ return out